Query Task using geometry (intersect) is returning too many values
I'm attempting to intersect multiple layers using a captured geometry (parcel). I run a Query Task against the geometry and only want features returned that actually cross into the parcel not just share a boundary. I'm getting the shared boundary features as well. I've checked to make sure the nodes match on each layer and they are in the same coordinate system. I've even tried the different Spatial Relationship options under the Query Task properties. This works in fine in our other Flex applcation using a shape comparison language string (T********) . I've thought of creating a negative buffer but I shouldn't need a work around for something this simple. Any ideas?
0
-
Hi Jeff,
I set the Spatial Relationship parameter to ESRI.ArcGIS.Client.Tasks.SpatialRelationship.esriSpatialRelContains for the Query Task activity and it only returns features that are contained completely within the selected geometry. I am using GE 4.5.0 and HTML5 viewer 2.6.0. Perhaps you weren't referencing the correct relationship? Here is a guide just in case: http://edndoc.esri.com/arcsde/9.0/general_topics/understand_spatial_relations.htm
I hope this helps.
Regards,
Carmen0 -
Thanks, Carmen, this is an awesome tip! 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer