Snažím se provést dotaz na tuto veřejnou službu prvků (bodová geometrie): http:\/\/services2.arcgis.com\/Gypl21NmiWS1cM7h\/ArcGIS\/rest\/services\/TrafficCounts\/FeatureServer\/0<\/A><\/P><\/P>Když zadám přesné souřadnice stanice, tato stanice je vrácena:<\/P><\/P>http:\/\/services2.arcgis.com\/Gypl21NmiWS1cM7h\/arcgis\/rest\/services\/TrafficCounts\/FeatureServer\/0\/query?geometry=-9350573.000000000000000000000000000000...<\/>\/<\/>\/<\/>\/<\/>\/<\/>\/<\/>\/<\/>\/<\/>\/<\/>\/<\/>\/<\/>\/<\/>\/<\/>\/<\/>\/<\/>\/<\/>\/<\/>\/<\/>...
<\/P>
Když zadám přesné souřadnice stanice, tato stanice je vrácena:<\/P>
Ale pokud přidám 2000 k parametru 'distance', nedostanu žádné výsledky:
http://services2.arcgis.com/Gypl21NmiWS1cM7h/arcgis/rest/services/TrafficCounts/FeatureServer/0/query?geometry=-9350573....
Zkoušel jsem to také s WKID 102100 a také stejné chování. Existují další stanice v dosahu 2000 metrů od této stanice, jak je ukázáno níže. Máte nějaký nápad, co by to mohlo způsobovat?
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.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.