I’m experiencing what appears to be inconsistent spatial query behavior in ArcGIS Server 11.5 against a polygon feature class stored in SQL Server.
I would like to know whether this is expected behavior, a known limitation, or potentially a bug.
Environment:
The issue:
Individual point queries work correctly.
However, when multiple points are combined into a single multipoint geometry, ArcGIS Server starts returning inconsistent results.
The strange part is:
Adding additional points can REMOVE previously returned OBJECTIDs from the result set.
https://servername/webgis/rest/services/Int/NG_Intern/MapServer/188/query
Post body:
{
"where": "1>0",
"geometry": {
"points": [
[518458.872, 6091340.096],
[529008.6611, 6096497.8727],
[518340.468, 6091537.346]
],
"spatialReference": {
"wkid": 25832
}
},
"geometryType": "esriGeometryMultipoint",
"inSR": 25832,
"spatialRel": "esriSpatialRelIntersects",
"units": "esriSRUnit_Meter",
"outFields": "objectid",
"returnGeometry": true,
"returnTrueCurves": false,
"returnIdsOnly": false,
"returnCountOnly": false,
"returnZ": false,
"returnM": false,
"returnDistinctValues": false,
"returnExtentOnly": false,
"sqlFormat": "none",
"returnUniqueIdsOnly": false,
"featureEncoding": "esriDefault",
"f": "json"
}
Example 1 — returns 3 polygon features:
{
"points": [
[518458.872,6091340.096],
[529008.6611,6096497.8727],
[518340.468,6091537.346]
],
"spatialReference": {
"wkid": 25832
}
}
Example 2 — same points + one additional point:
{
"points": [
[518458.872,6091340.096],
[529008.6611,6096497.8727],
[518340.468,6091537.346],
[521703.189,6102741.1]
],
"spatialReference": {
"wkid": 25832
}
}
This second query returns only 1 polygon feature???
The polygons returned from Example 1 disappear completely in Example 2, even though all original points are still included.
This seems logically incorrect - or am I missing something?
I can also reproduce similar behavior using multipart polygon geometries (rings) instead of multipoints.
Additional observations:
Has anyone seen similar behavior with:
I’m especially interested in whether:
Thanks.
@TanuHoque Should I report this as a potential bug?
You could publish the same service using a different back-end data source, e.g., file GDB instead of SQL Server, to see if the issue is isolated to a particular type of data source.
yes, pls open a ticket and we will take a look at this. I can't say much with the trying with the exact data. Thank you!
Also I do agree with Joshua. If you don't mind, please give this a try with file gdb and see how it behaves.
Thank you.