User Tools

Site Tools


manual:advanced:map_tools:conversion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
manual:advanced:map_tools:conversion [2015/09/02 12:30] mstupkamanual:advanced:map_tools:conversion [2023/06/27 14:40] (current) – [Convert SHP file to KML] mstupka
Line 1: Line 1:
  
-<todo>====== Mapc2mapc ======</todo>+====== Conversion of Maps ======
  
 ---- ----
 +===== How to create a sqlitedb file with Mapc2mapc =====
 <WRAP center round important > <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.  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. 
 </WRAP> </WRAP>
-===== How create a sqlitedb file with Mapc2mapc ===== 
- 
 ==== Basic information ==== ==== Basic information ====
-  * Locus Map currently supports a wide range of map formats (see more [[manual:user_guide:maps_external|here >>]]). But most common formats are not yet covered. If you want to convert your maps to some format usable by Locus Map, have a look at [[http://www.the-thorns.org.uk/mapping/help/over.html|MAPC2MAPC]] software.+  * Locus Map currently supports a wide range of map formats (see more [[manual:user_guide:maps_external|here >>]]). But many other formats are not yet covered. If you want to convert your maps to some format usable by Locus Map, have a look at [[http://www.the-thorns.org.uk/mapping/help/over.html|MAPC2MAPC]] software.
  
   * Firstly we recommend to test the demo version if this fits your needs. [[http://www.the-thorns.org.uk/mapping/help/locus.html|Here]] are instructions of the MAPC2MAPC author.   * Firstly we recommend to test the demo version if this fits your needs. [[http://www.the-thorns.org.uk/mapping/help/locus.html|Here]] are instructions of the MAPC2MAPC author.
  
-  * In case you are satisfied we suggest to buy the full version+  * In case you are satisfied we suggest to buy the full version\\  
 +Locus Map Classic user gets 10% discount of this product. [[http://www.the-thorns.org.uk/mapping/help/locus.html|Read more >>]]  
  
   * **MAPC2MAPC:** http://www.the-thorns.org.uk/mapping/   * **MAPC2MAPC:** http://www.the-thorns.org.uk/mapping/
Line 71: Line 72:
     * 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 which will be generated+    * Press OK and confirm all zoom levels that will be generated
  
 === Import map into Locus Map === === Import map into Locus Map ===
Line 84: Line 85:
 {{:manual:advanced:map_tools:44a-top25raster-2010-4326.zip|}} {{:manual:advanced:map_tools:44a-top25raster-2010-4326.zip|}}
 ===== How To Convert Shp File For Locus ===== ===== How To Convert Shp File For Locus =====
- 
-<WRAP box left>  
-  * Locus type: <html><b><a href="https://play.google.com/store/apps/details?id=menion.android.locus&amp;referrer=utm_source%3Ddocs%26utm_medium%3Dheader%26utm_content%3Dhow_to_convert_shp_file_for_locus" target="_blank">Free</a>/<a href="https://play.google.com/store/apps/details?id=menion.android.locus.pro&amp;referrer=utm_source%3Ddocs%26utm_medium%3Dheader%26utm_content%3Dhow_to_convert_shp_file_for_locus" target="_blank">Pro</a></b></html>, **2.3.0+** 
-  * Last updated manual: **2.3.0** 
-</WRAP> 
  
 ==== 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 SHP to the different format that is possible to import into Locus.+Locus Map basically does not support SHP files at this moment. On the other hand there are some possibilities how to convert SHP to different format that can be imported into Locus Map.
  
 ==== Convert SHP file to KML ==== ==== Convert SHP file to KML ====
  
-Probably the easiest way is convert SHP file into KMZ file which is fully supported by Locus. Unfortunately there is a limitation in size of KML file. The **limit** for Locus is about **5000 – 10000 points** depends on your device. +Probably the easiest way of converting SHP file which is fully supported by Locus. Unfortunately there is a limitation in size of KML file. The **limit** for Locus Map is about **5000 – 10000 points** depending on your device. 
  
   * Download free tool Shp2kml  [[http://www.zonums.com/files/Shp2kml.zip]]   * Download free tool Shp2kml  [[http://www.zonums.com/files/Shp2kml.zip]]
   * Unzip and run shp2kml.exe   * Unzip and run shp2kml.exe
-  * On the first screen select file for convert+  * Select the file for conversion on the first screen 
 {{ :manual:advanced:map_tools:shp2kml_select_file_for_convert.png?nolink |}} {{ :manual:advanced:map_tools:shp2kml_select_file_for_convert.png?nolink |}}
-  * Define color for lines/polygons+  * Define color of lines/polygons
 {{ :manual:advanced:map_tools:shp2kml_define_line_color.png?nolink |}} {{ :manual:advanced:map_tools:shp2kml_define_line_color.png?nolink |}}
   * Skip balloon definition screen   * Skip balloon definition screen
-  * On the last screen define name of layers and description+  * Define name of layers and description on the last screen 
 {{ :manual:advanced:map_tools:shp2kml_layer_decription.png?nolink |}} {{ :manual:advanced:map_tools:shp2kml_layer_decription.png?nolink |}}
  
   * Create KML file   * Create KML file
   * Copy created KML file into Locus/mapItems   * Copy created KML file into Locus/mapItems
-  * Run Locus and go to the Data manager > tab Items+  * Run Locus Map and go to the [[manual:user_guide:items|Map Items]]
  
 {{ :manual:advanced:map_tools:shp2kml_kml_in_locus.png?nolink |}} {{ :manual:advanced:map_tools:shp2kml_kml_in_locus.png?nolink |}}
Line 122: Line 118:
 === SHP file to OSM format === === SHP file to OSM format ===
  
-There are lots of possibilities how to do it -  see [[http://wiki.openstreetmap.org/wiki/Shapefiles]]. In this example we use [[http://merkaartor.be/|Merkaartor]] SW.+There are lots of possibilities how to do it - see [[http://wiki.openstreetmap.org/wiki/Shapefiles]]. In this example we use [[http://merkaartor.be/|Merkaartor]] SW.
  
   * Download Merkaartor [[http://merkaartor.be/wiki/merkaartor/Download]]   * Download Merkaartor [[http://merkaartor.be/wiki/merkaartor/Download]]
   * 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'' <bound>'' tag in the end of osm.xml file. You need move it and place whole tag before first geometry element+  * Note: Merkaartor place'' <bound>'' tag in the end of osm.xml file. You need to move it and place whole tag before first geometry element
  
 <code xml cze_adm.osm> <code xml cze_adm.osm>
Line 144: Line 140:
 == Osmosis == == Osmosis ==
   * Download and install osmosis 0.40.1 [[http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-0.41.zip]]     * Download and install osmosis 0.40.1 [[http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-0.41.zip]]  
-  * Note: there are newest version of osmosis but Map writer plugin does not work properly with them +  * Note: there are newer versions of Osmosis but the Map writer plugin does not work properly with them 
-  * More details about osmosis [[http://wiki.openstreetmap.org/wiki/Osmosis/Installation]]+  * More details about Osmosis [[http://wiki.openstreetmap.org/wiki/Osmosis/Installation]]
      
 == Map writer plugin == == Map writer plugin ==
   * Download Mapwriter plugin [[http://ci.mapsforge.org/job/release-0.5.0/lastSuccessfulBuild/artifact/mapsforge-map-writer/build/libs/mapsforge-map-writer-0.5.0.jar|mapsforge-map-writer-0.5.0-jar]]   * Download Mapwriter plugin [[http://ci.mapsforge.org/job/release-0.5.0/lastSuccessfulBuild/artifact/mapsforge-map-writer/build/libs/mapsforge-map-writer-0.5.0.jar|mapsforge-map-writer-0.5.0-jar]]
-  * Copy downloaded plugin into osmosis folder  osmosis/plugins . +  * Copy downloaded plugin into Osmosis folder  //osmosis/plugins// 
   * More about installing Map writer plugin: [[https://github.com/mapsforge/mapsforge/blob/master/docs/Getting-Started-Map-Writer.md#plugin-installation]]    * More about installing Map writer plugin: [[https://github.com/mapsforge/mapsforge/blob/master/docs/Getting-Started-Map-Writer.md#plugin-installation]] 
  
 == 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) which contains pairs of known tags for generation.  This xml  define which OSM element will be included in the map file.+  * Map writer plugin uses a XML file (tag-mapping.xml) that contains pairs of known tags for generation.  This xml  defines which OSM element will be included in the map file.
   * 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 ''tag-mapping-shp.xml'' file based on tag ''_ENGTYPE_2_''   * For this example we create ''tag-mapping-shp.xml'' file based on tag ''_ENGTYPE_2_''
manual/advanced/map_tools/conversion.1441189826.txt.gz · Last modified: 2015/09/02 13:30 (external edit)