Ik probeer een query uit te voeren op deze openbare feature service (puntgeometrie): http:\/\/services2.arcgis.com\/Gypl21NmiWS1cM7h\/ArcGIS\/rest\/services\/TrafficCounts\/FeatureServer\/0<\/A><\/P><\/P>Wanneer ik de exacte coördinaten voor een station invoer, wordt dat station teruggegeven:<\/P><\/P>http:\/\/services2.arcgis.com\/Gypl21NmiWS1cM7h\/arcgis\/rest\/services\/TrafficCounts\/FeatureServer\/0\/query?geometry=-9350573.06#8230;<\/A><\/P><\/P>Maar als ik 2000 toevoeg aan de parameter 'distance', krijg ik geen resultaten:<\/P><\/P>http:\/\/services2.arcgis.com\/Gypl21NmiWS1cM7h\/arcgis\/rest/services/TrafficCounts/FeatureServer/0/query?geometry=-9350573.06#8230;<\ /A> <\ /P><\ P>Ik heb dit ook geprobeerd met WKID 102100 ook. Zelfde gedrag. <\ /SPAN>Er zijn andere stations binnen 2000 meter van dat station, zoals hieronder weergegeven. Weet iemand wat dit veroorzaakt?<\ /P><\ P><\ /P><\ /BODY><\ /HTML>
<\/P>
Wanneer ik de exacte coördinaten voor een station invoer, wordt dat station teruggegeven:<\/P>
Maar als ik 2000 toevoeg aan de parameter 'distance', krijg ik geen resultaten:<\/P>
Try changing your Spatial Relationship from Within to Intersects
That did the trick. I was thinking that the "within" spatial relationship option that maps to esriSpatialRelWithin meant "are within distance of" like the option in the "Select by location" dialog in ArcMap. As did one of my co-workers. If any ESRI folks read this, consider changing "within" to "contained within" on the HTML form. I realize that changing esriSpatialRelWithin to something else will break code all over the world and is therefore infeasible.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.