Closed jkerr5 closed 6 years ago
ArcGIS Server response:
// 20171218093136
// http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3/query?where=1%3D2&returnCountOnly=true&f=geojson
{
"count": 0
}
Yes, that should be the response. I can work around this issue by setting the features in the response to an empty array like this:
{ type: 'FeatureCollection',
metadata: { name: 'GDeltGKG' },
filtersApplied: { geometry: true, where: true, offset: true },
count: 0,
features: [] }
published @2.9.2
When processing a request where
returnCountOnly=true
but the where clause is such that no features match so the resulting count is 0, I get the following error:Changing the query to return a count other than 0 works fine.
The result returned from the
getData()
function looks like this