Select to view content in your preferred language

Query with Filter Geometry (Intersects)

894
2
10-11-2012 03:17 AM
TonyCollins
Regular Contributor
Hi,

Could I check something for my sanity:

When performing a query against a MapService layer containing Polylines passing in a polygon (using Intersects) it only seems to return the polylines contained within the polygon.

I would expect it to return any polylines that intersect the polygon?

Can anyone confirm this is right/wrong?

Thanks
Tony
0 Kudos
2 Replies
__Rich_
Deactivated User
Which Intersects?

esriSpatialRelIntersects (default)
esriSpatialRelEnvelopeIntersects
esriSpatialRelIndexIntersects

😉 (j/k)

I'd have thought you'd get any of the lines where part of them intersects with the polygon:

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/query.htm

SPATIAL_REL_INTERSECTS  Part of a feature from feature class 1 is contained in a feature from featur...
0 Kudos
TonyCollins
Regular Contributor
Yea me too. Is there any reason they would not?
I have polylines on top of polylines in exatly the same place?
0 Kudos