This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| manual:advanced:map_tools:conversion [2015/05/15 06:56] – mstupka | manual:advanced:map_tools:conversion [2025/10/21 10:47] (current) – [Use GDAL for transformation] mstupka | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| ---- | ---- | ||
| - | <WRAP todo round center 60%>This page is obsolete and will be reworked soon</ | + | ===== How to create a sqlitedb file with Mapc2mapc |
| - | ===== How create a sqlitedb file with Maps2mapc | + | <WRAP center round important > |
| + | Mapc2mapc is not a product of Asamm Software so we do not take any responsibility for changes in its usage. This article is for general information only. | ||
| + | </ | ||
| ==== Basic information ==== | ==== Basic information ==== | ||
| - | * Locus currently | + | * Locus Map currently |
| + | |||
| + | * Firstly we recommend to test the demo version if this fits your needs. [[http:// | ||
| - | * Firstly, | + | * In case you are satisfied we suggest to buy the full version\\ |
| + | Locus Map Classic user gets 10% discount of this product. [[http:// | ||
| - | * In case you'll be satisfied, I suggest to buy full version by **Buy** button on bottom of manual page. Thanks to this, you'll get 10% discount of this product | ||
| * **MAPC2MAPC: | * **MAPC2MAPC: | ||
| - | ==== Additional | + | ==== Additional |
| - | * [[manual: | + | * [[manual:advanced: |
| - | * [[manual: | + | * [[manual:advanced: |
| Line 31: | Line 34: | ||
| ---- | ---- | ||
| - | ===== How to convert Netherlands | + | ===== How to convert Netherlands |
| - | The Netherlands kartographic service PDOK offers topographic map Topo25raster | + | The Netherlands kartographic service PDOK offers topographic map Top25raster |
| - | <wrap info> | + | <WRAP round |
| ==== Download data ==== | ==== Download data ==== | ||
| - | * Whole Netherland is devided | + | * Whole Netherland is divided |
| - | * Dowload | + | * Download |
| ==== Use GDAL for transformation ==== | ==== Use GDAL for transformation ==== | ||
| Line 47: | Line 50: | ||
| * For purpose of this tutorial download gdal http:// | * For purpose of this tutorial download gdal http:// | ||
| - | * Download | + | * Download gdal-110-1600-core.msi installer |
| - | === Transform downloaded | + | === Transform downloaded |
| - | * Open command line (CMD) and go to the GDAL installation folder | + | * Open command line (CMD) and go to the GDAL installation folder |
| - | * Transform downloaded | + | * Transform downloaded |
| set GDAL_DATA=.\gdal-data | set GDAL_DATA=.\gdal-data | ||
| gdalwarp -t_srs EPSG:4326 44a-top25raster-2010.tif | gdalwarp -t_srs EPSG:4326 44a-top25raster-2010.tif | ||
| - | === Generate map using Mapc2Mapc | + | === |
| - | * Download and install | + | * Download and install Mapc2Mapc http:// |
| * Start Mapc2mapc and set the location of gdal_translate | * Start Mapc2mapc and set the location of gdal_translate | ||
| * Edit > Locate > GDAL_translate | * Edit > Locate > GDAL_translate | ||
| - | * Open transformed | + | * Open transformed |
| * File > Load Calibrated map | * File > Load Calibrated map | ||
| * Export file for Locus | * Export file for Locus | ||
| - | * File > Write map for Mobile | + | * File > Write map for Mobile devices |
| - | * Choose Locus/RMAPS sqlitedb | + | * Choose Locus/Rmaps sqlitedb |
| * Set zoom levels | * Set zoom levels | ||
| - | * optional: check Make tile margins transparent | + | * optional: check Make tile margins transparent |
| - | * Press OK and confirm all zoom levels | + | * Press OK and confirm all zoom levels |
| - | === Import map into Locus === | + | === Import map into Locus Map === |
| * Copy generated sqlitedb map into your device folder Locus/ | * Copy generated sqlitedb map into your device folder Locus/ | ||
| - | * Start Locus | + | * Start Locus Map |
| === Red crosses === | === Red crosses === | ||
| - | * The demo version of mapc2mapc | + | * The demo version of Mapc2mapc |
| {{: | {{: | ||
| ===== How To Convert Shp File For Locus ===== | ===== How To Convert Shp File For Locus ===== | ||
| - | |||
| - | <WRAP box left> | ||
| - | * Locus type: < | ||
| - | * Last updated manual: **2.3.0** | ||
| - | </ | ||
| ==== Basic information ==== | ==== Basic information ==== | ||
| - | Locus basically does not support SHP file at this moment. On the other hand there are some possibilities how to covert | + | Locus Map basically does not support SHP files at this moment. On the other hand there are some possibilities how to convert |
| ==== Convert SHP file to KML ==== | ==== Convert SHP file to KML ==== | ||
| - | Probably the easiest way is convert | + | Probably the easiest way of converting |
| * Download free tool Shp2kml | * Download free tool Shp2kml | ||
| * Unzip and run shp2kml.exe | * Unzip and run shp2kml.exe | ||
| - | * On the first screen select | + | * Select |
| - | {{ : | + | {{ :manual: |
| - | * Define color for lines/ | + | * Define color of lines/ |
| - | {{ : | + | {{ :manual: |
| * Skip balloon definition screen | * Skip balloon definition screen | ||
| - | * On the last screen define | + | * Define |
| - | {{ : | + | {{ :manual: |
| * Create KML file | * Create KML file | ||
| * Copy created KML file into Locus/ | * Copy created KML file into Locus/ | ||
| - | * Run Locus and go to the Data manager > tab Items | + | * Run Locus Map and go to the [[manual: |
| - | {{ : | + | {{ :manual: |
| ==== Convert SHP to Mapsforge format ==== | ==== Convert SHP to Mapsforge format ==== | ||
| Line 120: | Line 118: | ||
| === SHP file to OSM format === | === SHP file to OSM format === | ||
| - | There are lots of possibilities how to do it - see [[http:// | + | There are lots of possibilities how to do it - see [[http:// |
| * Download Merkaartor [[http:// | * Download Merkaartor [[http:// | ||
| * Run it and open SHP file for converting | * Run it and open SHP file for converting | ||
| * Export OSM: File > Export > OSM (XML) | * Export OSM: File > Export > OSM (XML) | ||
| - | * Note: Merkaartor place'' | + | * Note: Merkaartor place'' |
| <code xml cze_adm.osm> | <code xml cze_adm.osm> | ||
| Line 142: | Line 140: | ||
| == Osmosis == | == Osmosis == | ||
| * Download and install osmosis 0.40.1 [[http:// | * Download and install osmosis 0.40.1 [[http:// | ||
| - | * Note: there are newest version | + | * Note: there are newer versions |
| - | * More details about osmosis | + | * More details about Osmosis |
| | | ||
| == Map writer plugin == | == Map writer plugin == | ||
| * Download Mapwriter plugin [[http:// | * Download Mapwriter plugin [[http:// | ||
| - | * Copy downloaded plugin into osmosis | + | * Copy downloaded plugin into Osmosis |
| * More about installing Map writer plugin: [[https:// | * More about installing Map writer plugin: [[https:// | ||
| == Define custom tags for generation of map file == | == Define custom tags for generation of map file == | ||
| - | * Map writer plugin uses a XML file(tag-mapping.xml) | + | * Map writer plugin uses a XML file (tag-mapping.xml) |
| * Use Merkaartor or arbitrary GIS/DBF viewer and decide which SHP attributes you want to export to the map file. | * Use Merkaartor or arbitrary GIS/DBF viewer and decide which SHP attributes you want to export to the map file. | ||
| * For this example we create '' | * For this example we create '' | ||
| - | {{ : | + | {{ :manual: |
| <code xml tag-mapping-shp.xml> | <code xml tag-mapping-shp.xml> | ||
| <?xml version=" | <?xml version=" | ||
| Line 205: | Line 203: | ||
| - | {{ : | + | {{ :manual: |