AnsweredAssumed Answered

ServiceFeatureTable.QueryFeaturesAsync inconsistent results on iOS

Question asked by jsiemens on Jun 20, 2018
Latest reply on Jul 4, 2018 by jsiemens

I'm having some trouble with ServiceFeatureTable.QueryFeaturesAsync().

 

Basically, it seems to produce very inconsistent results on iOS. Sometimes it returns features, but mostly it doesn't. I've tried on a few different services and layers and get the same behavior.

 

My code looks like this:


var queryParams = new QueryParameters()
{
ReturnGeometry = true,
SpatialRelationship = SpatialRelationship.EnvelopeIntersects,

Geometry = // a polygon obtained from user in spatial ref wkid 3857 (web mercator)
};

 

var features = await featureTable.QueryFeaturesAsync(queryParams, Esri.ArcGISRuntime.Data.QueryFeatureFields.Minimum, options.CancellationToken);

 

The service is also in 3857.

 

The problem is that no features are returned even though there clearly are features at the given location. 


I looked at the request using the Charles web proxy (similar to Fiddler, but works on a Mac), and ArcGIS Server is responding with http 304 (not modified). If I repeat the request with caching disabled in Charles, then ArcGIS Server does return results to me.

 

It seems like a bug to me. Is this a known issue? Are there any workarounds or solutions?

 

It works fine on Android and Windows UWP.

Outcomes