POST
|
I ve tried to get the attribute using the following way
File dbf = new File(Environment.getExternalStorageDirectory()
+ "/islreali/TabaYeud.dbf");
File shape = new File(Environment.getExternalStorageDirectory()
+ "/islreali/TabaYeud.shp");
File shx = new File(Environment.getExternalStorageDirectory()
+ "/islreali/TabaYeud.shx");
try {
URL dbfUrl = dbf.toURI().toURL();
EsriPlugIn epi = new EsriPlugIn("name", dbfUrl, shape.toURI().toURL(), shx.toURI().toURL());
EsriGraphicList eGList = epi.getEsriGraphicList();
Map<Object, Object> attr = eGList.getAttributes();
} catch (Exception e) {
e.printStackTrace();
}
In the above code, it throws an error when it reach the place wher we use EsriPlugIn. I get Noclassdef error. I think this is not supported in android as read from the below link http://openmap.bbn.com/mailArchives/openmap-users/2011-03/6671.html Cud anyone advise me how to read the shapefile attributes by using some other method of openmap or some other api. i get the same Noclassdef error too,then i use the openmap 5.0 instead of 5.0.1,the error is missing,i can read the data from shp file but the speed is too slow. there is another resolution,"Spatialite for Android",just google it .
... View more
11-10-2013
04:44 PM
|
0
|
0
|
156
|
POST
|
Download code from: http://www.openmap.org/ and then point to the jar files in the "lib" directory through the Java Build Path Libraries Tab in Eclsipse Can you tell me how to use the openmap after add the lib? or show me a sample/tutorial of open shape file from SD card by openmap.
... View more
10-11-2013
06:43 PM
|
0
|
0
|
606
|
POST
|
Thanks Dan.. Do you have any sample / tutorial for using android SDK ? I am new to android programming after you prepare the arcgis android environment ,you can see the ducument in eclipse(help->help content->ArcGIS Runtime SDK for Android),also you can new sample project from (file -> new ->project->arcgis for android->arcgis sample for adnroid )
... View more
10-11-2013
06:31 PM
|
0
|
0
|
599
|
POST
|
We support offline basemaps as *.tpk and offline features a JSON. Currently the API does not support the shapefile format. The next release will have added support for other offline files types. To see our current support, refer to ArcGISLocalTileLayer. The CreateLocalJsonFeatures sample shows a local *.tpk basemap and features from a feature layer persisted as JSON for offline usage. hey , i want to ask how can i open the shape file from sdcard when i use the 10.1 sdk,
... View more
10-11-2013
06:27 PM
|
0
|
0
|
599
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|