Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
[this post has a complete example for do this.][1] [1]:… – Mehdi Mar 12 '15 at 9:36
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

there are 2 articles with code for the point in polygon problem

share|improve this answer

Your Answer


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.