user3428540
user3428540

Reputation:

Android : Shapefile in Googlemaps

I'm Developing an app with Google Maps. In which i need to show a layer of data from the shape file or imagery.

Do any one has an idea on how to do it, i have no idea how to project the layer over the Google maps in android.

Provide me with some API and sample codes if available else with any other suggestion.

Upvotes: 2

Views: 3503

Answers (2)

LuisTavares
LuisTavares

Reputation: 2206

With Google Maps Android API utility library you can display KML or GeoJSON data over a Google Maps MapView.

Now you only need to parse your shapefile and convert it to one of the previous mentioned formats.

The shapefile parsing process can be accomplished with one of the libraries mentioned in this question.

The conversion process (java objects to XML or JSON objects) will need to be programmatically handled by you.

Upvotes: 2

M D
M D

Reputation: 47817

There is no way to render .Shp file directly in Google Maps.

But if you really want to do then export .Shp to .Kml file using some QuantumGIS or ARC GIS and then Make XMLPullParser that can easily parse this .Kml file.

Refer this questions for more information

Does anyone know of a library in Java that can parse ESRI Shapefiles?

Android lib to read or parse shapefile

https://gis.stackexchange.com/questions/48191/how-to-display-esri-shapefile-in-android

https://gist.github.com/kiichi/6119073

Upvotes: 2

Related Questions