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.
Locus Map Classic user gets 10% discount of this product. Read more >>
http://forum.locusmap.eu/viewtopic.php?f=10&t=413&p=1876&hilit=MAPC2MAPC#p1876
http://forum.locusmap.eu/viewtopic.php?f=21&t=4&p=4874&hilit=MAPC2MAPC#p4874
http://forum.locusmap.eu/viewtopic.php?f=44&t=899&p=5043&hilit=MAPC2MAPC#p5043
http://forum.locusmap.eu/viewtopic.php?f=21&t=3&p=6142&hilit=MAPC2MAPC#p6142
http://forum.locusmap.eu/viewtopic.php?f=21&t=3&p=12802&hilit=MAPC2MAPC#p12802
The Netherlands kartographic service PDOK offers topographic map Top25raster for free. These maps are provided in geotiff format in local coordinate system. Locus Map is not able to handle geotiff format, therefore it is necessary to convert these data manually.
This tutorial is prepared for Windows system but especially GDAL utilities work a little bit better on Linux systems.
set GDAL_DATA=.\gdal-data gdalwarp -t_srs EPSG:4326 44a-top25raster-2010.tif 44a-top25raster-2010-4326.tif
Locus Map basically does not support SHP files at this moment. On the other hand there are some possibilities how to convert SHP to a different format that can be imported into Locus Map.
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.
In this example we expect that shp file for converting is very simple. Unfortunately converting is little bit tricky and requires a specific approach for particular SHP files. So it is not possible to say that this example could be used for every SHP file.
For this example we use free shp data (Czech Republic boundaries ) download-able at http://gadm.org/data/shp/CZE_adm.zip.
There are lots of possibilities how to do it - see http://wiki.openstreetmap.org/wiki/Shapefiles. In this example we use Merkaartor SW.
<bound>
tag in the end of osm.xml file. You need to move it and place whole tag before first geometry element<?xml version="1.0"?> <osm generator="Merkaartor 0.17" version="0.6"> <bound box="48.540841,12.085860,51.054381,18.862533" origin="http://www.openstreetmap.org/api/0.6"/> <node version="0" lon="14.4138160" lat="49.2553340" timestamp="2013-04-28T10:55:33Z" user="" id="-1" actor="0"/> ... ... ...
tag-mapping-shp.xml
file based on tag _ENGTYPE_2_
<?xml version="1.0" encoding="UTF-8"?> <tag-mapping xmlns="http://mapsforge.org/tag-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mapsforge.org/tag-mapping ../resources/tag-mapping.xsd" default-zoom-appear="16" profile-name="default-profile"> <!-- CZE_ADM_2 --> <ways> <osm-tag key="_ENGTYPE_2_" value="District" zoom-appear="4" force-polygon-line="true" /> <osm-tag key="_ENGTYPE_2_" value="Statutory city" zoom-appear="4" force-polygon-line="true"/> </ways> </tag-mapping>
bin\osmosis.bat --read-xml cze_adm.osm --mapfile-writer file=cze_adm.osm.map type=ram tag-conf-file=tag-mapping-shp.xml bbox-enlargement=0
cze_adm_theme.xml
)<?xml version="1.0" encoding="UTF-8"?> <rendertheme xmlns="http://mapsforge.org/renderTheme" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mapsforge.org/renderTheme ../renderTheme.xsd" locus-extended="1" fill-sea-areas="0" version="1" map-background="#00FFFFFF"> <!-- Render Boundaries --> <rule e="way" k="*" v="*"> <rule e="way" k="_ENGTYPE_2_" v="District" > <line stroke="#FF3E96" stroke-width="4" /> </rule> <rule e="way" k="_ENGTYPE_2_" v="Statutory city"> <line stroke="#B56904" stroke-width="4" /> </rule> </rule> </rendertheme>
cze_adm.osm.map
into folder Locus/mapsVector
Locus/mapsVector/_themes