Hello,
I am using ArcGIS Runtime 100.15.0 .NET SDK, and I'm querying a ServiceFeatureTable that contains polylines with a simple where clause (ID='xyz'). If I a test the query in a browser the result is ok, n features, but when I execute the same query in code I get less features than it would be expected.
Maybe any relationship with the service?
Thanks in advance
This is my code
Esri.ArcGISRuntime.Data.ServiceFeatureTable featureTable = new Esri.ArcGISRuntime.Data.ServiceFeatureTable(new Uri(uri));
Esri.ArcGISRuntime.Data.QueryParameters queryParams = new Esri.ArcGISRuntime.Data.QueryParameters();
queryParams.WhereClause = strWhere;
queryParams.ReturnGeometry = true;
queryParams.OutSpatialReference = ControlObjMap.General.MapaActivoVGIS.ObjetoMapa.map1.SpatialReference;
Esri.ArcGISRuntime.Data.FeatureQueryResult queryResult = await _featureTable.QueryFeaturesAsync(queryParams);
But also I tried this code with all parameters setted
Esri.ArcGISRuntime.Data.ServiceFeatureTable feature_Pruebas =
new Esri.ArcGISRuntime.Data.ServiceFeatureTable(new Uri(uri));
Esri.ArcGISRuntime.Data.QueryParameters queryParams_Pruebas = new Esri.ArcGISRuntime.Data.QueryParameters
{
MaxAllowableOffset=99999,
ResultOffset=10,
SpatialRelationship = Esri.ArcGISRuntime.Data.SpatialRelationship.Equals,
WhereClause = strWhere,
ReturnGeometry = true,
OutSpatialReference = ControlObjMap.General.MapaActivoVGIS.ObjetoMapa.map1.SpatialReference
};
var taskQuery_Pruebas = feature_Pruebas.QueryFeaturesAsync(queryParams_Pruebas);
taskQuery_Pruebas.Wait();
Esri.ArcGISRuntime.Data.FeatureQueryResult queryResult_Pruebas = taskQuery_Pruebas.Result;