Estou tentando consultar este serviço público de feição (geometria de ponto): http:\/\/services2.arcgis.com\/Gypl21NmiWS1cM7h\/ArcGIS\/rest\/services\/TrafficCounts\/FeatureServer\/0<\/A><\/P><\/P>Quando insiro as coordenadas exatas para uma estação, essa estação é retornada:<\/P><\/P>http:\/\/services2.arcgis.com\/Gypl21NmiWS1cM7h\/arcgis\/rest\/services\/TrafficCounts\/FeatureServer\/0\/query?geometry=-9350573.027537299964<\/A><\/P><\/P>Mas se eu adicionar 2000 ao parâmetro 'distance', não obtenho resultados:<\/P><\/P>http:\/\/services2.arcgis.com\/Gypl21NmiWS1cM7h\/arcgis\/rest\/services\/TrafficCounts\/FeatureServer\/0\/query?geometry=-9350573.027537299964<\/A> <\/> <\/>Tentei isso com WKID 102100 também. Mesmo comportamento. <\/> Existem outras estações dentro de 2000 metros dessa estação, como mostrado abaixo. Alguma ideia do que está causando isso?<\/> <\/> <\/> <\/> <\/>
<\/P>
Quando insiro as coordenadas exatas para uma estação, essa estação é retornada:<\/P>
Mas se eu adicionar 2000 ao parâmetro 'distance', não obtenho resultados:<\/P>
<\/>
Tentei isso com WKID 102100 também. Mesmo comportamento. <\/> Existem outras estações dentro de 2000 metros dessa estação, como mostrado abaixo. Alguma ideia do que está causando isso?<\/>
<\/> <\/> <\/> <\/>
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.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.