网友通过本文主要向大家介绍了andriod编程软件,andriod studio 教程,andriodmarket,安卓 andriod,andriod7.0等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
arcgis andriod 加载影像,arcgisandriod
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);