Select to view content in your preferred language

Spatial Queries Behaving Strangely

191
2
03-20-2025 03:51 PM
jfischer91
Regular Contributor

The Measure widget seems to use appropriate coordinate systems to measure straight line distance, but the spatial feature of the Query widget does not.

I have a point feature layer and a trails layer, and I want to give the ability to query points based on their distance to trails. I was testing it and noticed that a point should have been included in the spatial query but was not selected. I measured in the app using the Measure widget, and the distance was 0.85 miles; well within my 1-mile buffer.

I then checked in Pro and put the coordinate system into NAD 1983 State Plane. The measurement returned 0.85 miles and when I ran the Select By Location, the point was selected. I switched the map over to Web Mercator, reprojected my points layer to Web Mercator, and started over. The measurement distance returned 1.24 miles, and the Select By Location did not return the point (it did return the same record count as when I ran it in ExpB, which I guess is consistent at least).

I know measurements are not fully accurate in Web Mercator, but how do we mitigate this while making apps in ExpB that largely use maps that are in that coordinate system? And how do I know I can trust the results I get from an ExpB app when doing these operations?

0 Kudos
2 Replies
Ke_Xu
by Esri Contributor
Esri Contributor

Hi @jfischer91,

Please track the progress of this bug BUG-000166930. The plan is to fix it in the June release of ArcGIS Online.

 

Thanks,

Ke

0 Kudos
jfischer91
Regular Contributor

Hi @Ke_Xu,

Thanks for letting me know. I can't find it in My Esri yet.

0 Kudos