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:[EMAIL PROTECTED]] Sent: 11. júlí 2001 22:02 To: [EMAIL PROTECTED] Subject: [PHP] Re: Function? How to find if xy values are within a coordinates of polygon? "Sed" <[EMAIL PROTECTED]> wrote in message 009301c10a46$3db4eba0$0100a8c0@mamma">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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]