0

We are using mapsforge, a Java component for Android. This component use a proprietary format file (.map) that can be download from OpenStreetMap (OSM).

I need to use .shp maps, so I want to know how can I convert a .shp file into a .map file for mapsforge for Android

2

I think you could try passing through OSM files.

  1. Convert your shp to OSM format with http://wiki.openstreetmap.org/wiki/Shp-to-osm.jar (you have to write a mapping of your columns to OSM tags)

  2. Convert this OSM file to Mapsforge with the Map Writer https://code.google.com/p/mapsforge/wiki/GettingStartedMapWriter

-2

You can use MapServer Export plugin from from Quantum GIS. Just load all your shapefiles to QGIS, set style and other properties, and use Mapserver Export Plugin.

enter image description here

  • 1
    This plugin is for MapServer's mapfile, and not mapsforge's .map format – Devdatta Tengshe Aug 18 '14 at 9:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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