Я попытался с ниже код для чтения и отображения шейп с моей SD картыКак отобразить карту, используя файлы формы в Android?
ShapefileFeatureTable shapefileFeatureTable = null;
try {
shapefileFeatureTable = new ShapefileFeatureTable(Environment.getExternalStorageDirectory().getAbsolutePath()+"/India_SHP/INDIA.shp");
featureLayer = new FeatureLayer(shapefileFeatureTable);
featureLayer.setRenderer(new SimpleRenderer(new SimpleMarkerSymbol(
getResources().getColor(android.R.color.holo_blue_bright),
28, SimpleMarkerSymbol.STYLE.CIRCLE)));
mMapView.addLayer(featureLayer);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
А вот это мое приложение build.gradle детали файл
dependencies {
repositories {
jcenter()
// Add the Esri public Bintray Maven repository
maven {
url 'https://esri.bintray.com/arcgis'
}
}
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.0.1'
testCompile 'junit:junit:4.12'
compile 'com.esri.arcgis.android:arcgis-android:10.2.5'
}
И, наконец, я я получаю пустой черный экран
Может ли кто-нибудь помочь мне в этом отношении? Я пытаюсь этот пример из последних трех дней
попробуйте посмотреть на это: http://gis.stackexchange.com/questions/48191/how-to-display-esri-shapefile-in-android –