1

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

2 Answers 2

3

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
  • 2
    This plugin is for MapServer's mapfile, and not mapsforge's .map format Commented Aug 18, 2014 at 9:17

Your Answer

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

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