Does anyone know a function to determine if a Point exists within a polygon?
Edit: I'm using C# with ArcEngine10.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityDoes 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