agray1

ISpatialFilter SpatialRelDescription find points not in polygon

Discussion created by agray1 on Jan 19, 2012
Latest reply on Jan 23, 2012 by agray1
Hi there,
I have a point featureclass (not M or Z aware) and a polygon.  I want to use a spatial query to find all the points not in the polygon.  As far as I can tell only the spatialRelDescription will do this.  The problem is I get inconsistent results.  Some points are found as expected other are not.

I used the following string:
"F********"
"******T**"

It finds some of the points but never all of the points.  I am somewhat perplexed.

The alternative is to loop through all the point and use a relational operator but that seems like it would be slower.  The SpatialRelDescription should work.

Outcomes