Unable to see shapefile?

المشرف العام

Administrator
طاقم الإدارة
I am trying to add my shapefile which consists of buildings to my MapView. However, I am not able to see it. I am referring to Buildings.shp on my SD card.I am able to open and see the same shapefile and the buildings in it with an an online shapefile viewer.

my main.xml





my activity

try { shpFileFeatTable = new ShapefileFeatureTable(mSdcard+mShapefilePath); mFlayer = new FeatureLayer(shpFileFeatTable); mFlayer.setRenderer(new SimpleRenderer(new SimpleMarkerSymbol(Color.CYAN, 20, STYLE.CIRCLE))); mMapView.addLayer(mFlayer); Log.d("**ShapefileTest**", "SpatialReference : "+ shpFileFeatTable.getSpatialReference()); } catch (FileNotFoundException e) { Toast.makeText(getApplicationContext(), "File not found in SDCard, nothing to load", Toast.LENGTH_LONG).show(); }

أكثر...
 
أعلى