Does anyone know a function to determine if a Point exists within a polygon?
Edit: I'm using C# with ArcEngine10.
|
Does anyone know a function to determine if a Point exists within a polygon? Edit: I'm using C# with ArcEngine10. |
||||
|
|
Take a look at the IRelationalOperator2 you can cast your polygon to that Interface and use the contains method. |
|||
|
|
|
If you don't want to use Arc, take a look at Graphics Gems IV http://tog.acm.org/resources/GraphicsGems/ there are 2 articles with code for the point in polygon problem |
|||
|
|