Re: Function? How to find if xy values are within a coordinates of polygon?
| From: | SED | Date: | Wed, 11 Jul 2001 23:21:57 +0000 |
| Subject: | Re: Function? How to find if xy values are within a coordinates of polygon? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-57507@lists.php.net to get a copy of this message | ||
Thanks to Lasse I found a good solution, you can view it here:
http://softlab.od.ua/algo/other/alg/node158.html
Thanks!
SED
-----Original Message-----
From: Lasse [mailto:lm@nospam.dk]
Sent: 11. júlí 2001 22:02
To: php-general@lists.php.net
Subject: [PHP] Re: Function? How to find if xy values are within a
coordinates of polygon?
"Sed" <sed@sed.is> wrote in message
news:009301c10a46$3db4eba0$0100a8c0@mamma...
> I'm making a map (image) which you can click on and the script finds
> the area-code based on where you click on the map.
>
> Before I spend time on writing my own code to find if xy values are
> within a certain coordinates of a polygon, do you know of any build in
> function to do it? I have browsed lightly through the PHP-manual but
> not found any.
http://www.google.com/search?sourceid=navclient&q=point+inside+polygon
#1 match is
http://www.dfanning.com/tips/point_in_polygon.html
--
Lasse
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net To
contact the list administrators, e-mail: php-list-admin@lists.php.net