有什么方法可以获取ENC图层的所有功能并在Java或.net ArcGIS SDK中切换其可见性?

问题描述 投票:1回答:1

[我一直在寻找从ENC层获取所有功能列表的方法,同时查看我遇到的this编码示例。

在此示例代码中,我们具有MapView.IdentifyLayersAsync和MapView.IdentifyLayerAsync方法,这两个方法都分别返回Task>和Task,然后我们可以从GeoElements获取要素,但是这两个方法都需要Point作为输入参数,我们该怎么办这没有提供要点,即获得ENC层的所有功能,是否可以在MapView中切换它们的可见性(特别是在Java 100.7.0中)?在此先感谢

java .net arcgis arcgis-runtime
1个回答
0
投票

无法使用IdentifyLayerAsync()从ENC层获得所有功能。IdentifyLayerAsync()用于通过单击鼠标来识别可见特征。https://developers.arcgis.com/java/latest/api-reference/reference/com/esri/arcgisruntime/mapping/view/GeoView.html#identifyLayersAsync(javafx.geometry.Point2D,double,boolean,int)

您的用例是什么?您是要获取当前视图中的所有ENC功能还是要从ENC文件中获取所有功能?您是否看过GDAL ogr2ogr实用程序?它可以将S57(ENC)导出为其他矢量格式。

© www.soinside.com 2019 - 2024. All rights reserved.