Arcgis Runtime for andriod 100 加载geodatabase
2017-08-21 22:09
323 查看
private void LoadMY() { try { String mainGeodatabaseFilePath = YLPub.getMapData() + "/gismap/sl.geodatabase";; mMapView = (MapView) findViewById(R.id.mapView); String tpk=YLPub.getMapData() + "/gismap/map.tpk"; TileCache vTileCache = new TileCache(tpk); ArcGISTiledLayer mainArcGISTiledLayer = new ArcGISTiledLayer(vTileCache); Basemap mainBasemap = new Basemap(mainArcGISTiledLayer); pMap = new ArcGISMap(mainBasemap); mMapView .setMap(pMap); final Geodatabase mainGeodatabase = new Geodatabase(mainGeodatabaseFilePath); mainGeodatabase.loadAsync(); mainGeodatabase.addDoneLoadingListener(new Runnable() { @Override public void run() { List<GeodatabaseFeatureTable> resultsGFT = mainGeodatabase.getGeodatabaseFeatureTables(); int valueCount = resultsGFT.size(); for (int i = valueCount - 1; i > -1; i--) { FeatureLayer valueFL = new FeatureLayer(resultsGFT.get(i)); valueFL.setVisible(true); LayerList mainLayerList = pMap.getOperationalLayers(); mainLayerList.add(valueFL); } } }); } catch (Exception e) { } }
相关文章推荐
- Arcgis Runtime for andriod 100 加载TPK
- ArcGIS for Android Runtime 100 升级实践(一)地图加载,图形和符号初始化
- Arcgis Runtime for andriod 100 Simple marker symbol
- ArcGIS for Android Runtime100 基本操作(一)——图层加载和切换
- ArcGIS for Android Runtime100 基本操作(五)——绘制图层和符号渲染
- arcgis runtime for iOS100.0 加载地图 按坐标加载点 objective-c实现
- arcgis for android: file:/mnt/sdcard/xxx.geodatabase does not exist.
- 一、ArcGIS Runtime SDK for iOS 100.2.1教程系列之底图与动态图层加载
- ArcGIS API for JS 加载GeoJSON数据
- ArcGIS Runtime SDK for iOS 开发之加载地图
- ArcGIS for Android Runtime100 基本操作(三)——离线数据空间查询
- ArcGIS for Android Runtime100 基本操作(六)——移动地图包MMPK的使用
- [ArcGIS for Android] arcgis runtime for android 中加载矢量数据的实现
- ArcGIS Geodatabase for DB2安装指南
- ArcGIS for Android Runtime100.2.0(3):加载基础底图
- ArcGIS API for JavaScript 加载GeoJSON数据
- [ArcGIS必打补丁]ArcGIS 10.2.2 for (Desktop, Engine, Server) Geodatabase and Feature Service Sync Optimiz
- ArcGIS Runtime for .Net Quartz开发探秘(四):加载本地文件
- ArcGIS for Android Runtime100 基本操作(一)——点线面测距离长度和面积
- ArcGIS for Android Runtime100 基本操作(七)——三维地图初步使用