This project has moved and is read-only. For the latest updates, please go here.

How can I find out if a point lies inside a polygon?

Aug 30, 2012 at 12:57 PM

hi,

I have a KML file which defines different regions (defined as polygons) in a city. I have to figure out which region a particular set of co ordinates fall in? Is this possible with this library?

Sep 1, 2012 at 11:10 AM

You can have a look at this page to see how to extract all the polygons from the file. You can query their coordinates using the OuterBoundary.LinearRing.Coordinates property, but you'll have to provide the logic for determining if a point falls inside those coordinates.

Hope it helps.

Oct 15, 2013 at 12:47 PM
Is there any work done on this? I mean has anybody figured out how to check if a point belongs to a polygon?

Regards
John