星空网 > 软件开发 > 操作系统

andriod arcgis加载影像TIF

 private static final String TAG = "MainActivity";  private MapView mapView = null;  @Override  protected void onCreate(Bundle savedInstanceState) {    super.onCreate(savedInstanceState);    setContentView(R.layout.activity_main);    this.mapView = (MapView)this.findViewById(R.id.map);    String rasterPath = Environment.getExternalStorageDirectory().getPath() +"/ArcGIS/samples/Raster/QL_IMage.tif"; //QL_IMage.tif,Landsat8Hawaii_naturecolor.tif    FileRasterSource rasterSource =null;    try {      rasterSource = new FileRasterSource(rasterPath);    } catch (IllegalArgumentException ie) {      Log.d(TAG, "null or empty path");    } catch (FileNotFoundException fe) {      Log.d(TAG, "raster file doesn't exist");    } catch (RuntimeException re) {      Log.d(TAG, "raster file can't be opened");    }    RasterLayer rasterLayer = new RasterLayer(rasterSource);    this.mapView.addLayer(rasterLayer);

 




原标题:andriod arcgis加载影像TIF

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

丁点集运:https://www.goluckyvip.com/tag/30503.html
丁惠英:https://www.goluckyvip.com/tag/30504.html
丁健文:https://www.goluckyvip.com/tag/30505.html
叮当海外仓:https://www.goluckyvip.com/tag/30506.html
叮叮科技:https://www.goluckyvip.com/tag/30507.html
叮咚买菜:https://www.goluckyvip.com/tag/30508.html
【专访】美区亿级大卖:从筛选到履约,TikTok达人建联背后那些你不知道的细节:https://www.goluckyvip.com/news/219220.html
推荐一个Youtube视频 摘要和核心内容 AI提取工具:https://www.kjdsnews.com/a/1842190.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流