1

I want to develop an Android app which will display Google Maps and also display a shapefile (Esri shapefile with polygons, styled in ArcGIS, and having an attribute table). I want to be able to display the shapefile so that if someone clicks a polygon in the shapefile it brings up the attribute of that polygon.

Is this possible in Google Maps Android API, if not what are the other alternatives?

2
  • Alternatives, use a WMS or WFS
    – nmtoken
    Feb 14, 2022 at 12:54
  • Any working example? Feb 14, 2022 at 20:21

1 Answer 1

0

First Method:

Yes, that is normal work that you can do this. First you should export your Shapefiles to a Spatialite database. You can download Spatialite-GUI for do this. Then you can add these records to map and get any record from database with click on map. I am working with Mapsforge VTM instead of Google Map.

Second Method:

You can use Geoserver to generate a WMS layer and then show that in your application.

2
  • i want to have an independent application not using any external dbms , i think by your answer you mean i need to have the db running on a server somewhere, plus i cant use geoserver for same reasons, i dont want to have commuication with the server, just an app which has shapefiles stored locally.. Mar 17, 2022 at 7:39
  • You can use "First Method" to save your shapefile in a local database. Then retrieve that and show it on the map. You don't need to use Geoserver and communication with the server by this method. Mar 17, 2022 at 9:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.