The LocatorTask.ReverseGeocodeAsync method does not return any attribute information only for the offline locator.
上次发布: August 11, 2017ArcGIS Runtime SDK
漏洞 ID 编号
BUG-000102342
已提交
January 24, 2017
上次修改时间
June 5, 2024
适用范围
ArcGIS Runtime SDK
找到的版本
100.0.0
操作系统
Windows OS
操作系统版本
10.0
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
The default return fields for an ArcGIS Runtime locator dataset are Match_addr for a non-composite locator, and Match_addr and Loc_Name for a composite locator. To return additional fields, field names should be added to the ReverseGeocodeParameters.ResultAttributeNames property. Additionally an asterisk ("*") can be used to return all fields.
解决办法
One or more attribute names must be added to the ReverseGeocodeParameters.ResultAttributeNames property, or alternatively "*" for all attributes. ReverseGeocodeParameters rgParams = new ReverseGeocodeParameters();rgParams.MaxDistance = 10;rgParams.OutputSpatialReference = MyMapView.Map.SpatialReference;rgParams.MaxResults = 5;rgParams.ResultAttributeNames.Add("*");