Query fails when using a large geometry layer in ArcGIS Runtime Local Server.
上次发布: October 1, 2022ArcGIS Runtime SDK
漏洞 ID 编号
BUG-000152185
已提交
September 8, 2022
上次修改时间
July 24, 2025
适用范围
ArcGIS Runtime SDK
找到的版本
100.14
操作系统
Windows OS
操作系统版本
10.0 64 Bit
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
This is a limitation of the underlying architecture of Local Server and cannot be addressed.
Note: ArcGIS Maps SDK for Local Server is deprecated. The last release of Local Server will be ArcGIS Maps SDK for Local Server 200.8. For more information, see the deprecation announcement (https://support.esri.com/en-us/knowledge-base/deprecation-arcgis-maps-sdk-for-local-server-000034908).
解决办法
Use GeometryEngine.Generalize() to reduce the size of the request. See https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Geometry.GeometryEngine.Generalize.html.
e.g.,
Geometry geometry = GeometryEngine.Generalize(f.Geometry,1,false);
// Now, do the query
var queryParameters = new QueryParameters()
{
Geometry = geometry,
SpatialRelationship = SpatialRelationship.Intersects,
MaxFeatures = 10000
};
In general, we recommend using the mobile geodatabase format (optionally as part of a Mobile Map Package).