このパブリックフィーチャサービス(ポイントジオメトリ)に対してクエリを実行しようとしています: http:\/\/services2.arcgis.com\/Gypl21NmiWS1cM7h\/ArcGIS\/rest\/services\/TrafficCounts\/FeatureServer\/0<\/A><\/P><\/P>駅の正確な座標を入力すると、その駅が返されます:<\/P><\/P>http:\/\/services2.arcgis.com\/Gypl21NmiWS1cM7h\/arcgis\/rest\/services\/TrafficCounts\/FeatureServer\/0\/query?geometry=-9350573.00000000000000000000000000000000...<\/>A><\/>P><\/>P>しかし、'distance' パラメータに 2000 を追加すると、結果が返ってきません:<\/>P><\/>P>http:\/\/services2.arcgis.com\/Gypl21NmiWS1cM7h\/arcgis\/rest/services/TrafficCounts/FeatureServer/0/query?geometry=-9350573.<\/>A> <\/>P><\/>P>WKID 102100 でも試しました。結果は同じです。 その駅の周囲2000メートル以内には他の駅もあります。以下の図の通りです。 何が原因かご存知でしょうか?<\/>P><\/>BODY><\/>HTML>
<\/P>
駅の正確な座標を入力すると、その駅が返されます:<\/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.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.