Estoy intentando consultar este servicio público de entidades (geometría puntual): http:\/\/services2.arcgis.com\/Gypl21NmiWS1cM7h\/ArcGIS\/rest\/services\/TrafficCounts\/FeatureServer\/0<\/A><\/P><\/P>Cuando ingreso las coordenadas exactas para una estación, esa estación es devuelta:<\/P><\/P>http:\/\/services2.arcgis.com\/Gypl21NmiWS1cM7h\/arcgis\/rest\/services\/TrafficCounts\/FeatureServer\/0\/query?geometry=-9350573.06<\/A><\/P><\/P>Pero si agrego 2000 al parámetro 'distance', no obtengo resultados:<\/P><\/P>http:\/\/services2.arcgis.com\/Gypl21NmiWS1cM7h\/arcgis\/rest\/services\/TrafficCounts\/FeatureServer\/0\/query?geometry=-9350573.06<\/A> <\/> <\/> He probado esto con WKID 102100 también. Mismo comportamiento. <\/> Hay otras estaciones dentro de 2000 metros de esa estación, como se muestra a continuación. ¿Alguna idea de qué está causando esto?<\/> <\/> <\/> <\/> <\/>
<\/P>
Cuando ingreso las coordenadas exactas para una estación, esa estación es devuelta:<\/P>
Pero si agrego 2000 al parámetro 'distance', no obtengo resultados:<\/P>
<\/>
He probado esto con WKID 102100 también. Mismo comportamiento. <\/> Hay otras estaciones dentro de 2000 metros de esa estación, como se muestra a continuación. ¿Alguna idea de qué está causando esto?<\/>
<\/> <\/> <\/> <\/>
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.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.