[我一直在寻找从ENC层获取所有功能列表的方法,同时查看我遇到的this编码示例。
在此示例代码中,我们具有MapView.IdentifyLayersAsync和MapView.IdentifyLayerAsync方法,这两个方法都分别返回Task>和Task,然后我们可以从GeoElements获取要素,但是这两个方法都需要Point作为输入参数,我们该怎么办这没有提供要点,即获得ENC层的所有功能,是否可以在MapView中切换它们的可见性(特别是在Java 100.7.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)导出为其他矢量格式。