码迷,mamicode.com
首页 > 其他好文 > 详细

arcgis andriod 加载影像

时间:2016-02-23 13:19:28      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:

MapView mMapView;
......
String rasterPath = Environment.getExternalStorageDirectory().getPath() + "/raster/test.tif";
FileRasterSource rasterSource;
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);
mMapView.addLayer(rasterLayer);

arcgis andriod 加载影像

标签:

原文地址:http://www.cnblogs.com/gisoracle/p/5209446.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!