Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Does anyone know a function to determine if a Point exists within a polygon?

Edit: I'm using C# with ArcEngine10.

share|improve this question
    
do you mean function in a spatial database or some API with spatial functions (if so, which language)? –  Mario Miler Sep 8 '10 at 19:40

2 Answers 2

up vote 7 down vote accepted

Take a look at the IRelationalOperator2 you can cast your polygon to that Interface and use the contains method.

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.