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

Assuming I have an layer from a shape file which is not shaped like a rectangle how would I determine if a point lies within this layer?

share|improve this question
up vote 1 down vote accepted

There's a couple of ways to do it - if you already have both geometries, than you can get an IRelationalOperator from the polygon, and simply execute "Contains" on it.

Failing that, you could execute a spatial query on the feature class (from the shape file), asking for all features that contain the point in question. More details available than you can shake a stick at from ESRI.

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.