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

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/35985.html
跨境电商排行榜:https://www.goluckyvip.com/tag/35986.html
跨境电商排名:https://www.goluckyvip.com/tag/35987.html
跨境电商排名2022:https://www.goluckyvip.com/tag/35988.html
跨境电商培训班:https://www.goluckyvip.com/tag/35990.html
跨境电商培训班课程:https://www.goluckyvip.com/tag/35991.html
三亚有哪些酒店值得入住?:https://www.vstour.cn/a/366173.html
零售晚报:丽人丽妆2023年扭亏为盈 玉容初、美壹堂等自有品牌增速超40% :https://www.kjdsnews.com/a/1836649.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流