This object is in archive! 
Shapefile to Vector map?
Answered
Any workflows established for converting shapefiles to Locus Pro Vector Maps, also what are the max points Locus Pro can handle with Vector maps??
Hi Scott,
See manual page where is described how to convert SHP file.
https://asammsoftware.zendesk.com/hc/...
The easiest solution is to convert SHP into KML/KMZ file but in this case you are limited in number of points/lines. Locus is able to show KML file with 5000 – 10000 points. It depends on your device.
If you decide to convert SHP into Locus vector map format then there is no limitation. But the conversion process is very tricky and the points or line segment are not “click able”
Hi Scott,
See manual page where is described how to convert SHP file.
https://asammsoftware.zendesk.com/hc/...
The easiest solution is to convert SHP into KML/KMZ file but in this case you are limited in number of points/lines. Locus is able to show KML file with 5000 – 10000 points. It depends on your device.
If you decide to convert SHP into Locus vector map format then there is no limitation. But the conversion process is very tricky and the points or line segment are not “click able”
Thanks Petr. I am having difficulty in accomplishing the conversion from Shapefile to Maps forge. I have gotten as far as converting to . osm, but cannot seem to get osmosis and mapsforge map plug in installed correctly.
Thanks Petr. I am having difficulty in accomplishing the conversion from Shapefile to Maps forge. I have gotten as far as converting to . osm, but cannot seem to get osmosis and mapsforge map plug in installed correctly.
Hi Scott,
I’ve little bit improved the tutorial page. I prepared whole pack of osmosis with map writer plugin.
You can download it https://asammsoftware.zendesk.com/hc/...
Then see the section "Generate map file" where is described how to run generation
Hi Scott,
I’ve little bit improved the tutorial page. I prepared whole pack of osmosis with map writer plugin.
You can download it https://asammsoftware.zendesk.com/hc/...
Then see the section "Generate map file" where is described how to run generation
Thanks Petr! OK, once I have this folder structure down, The file I have is a .osm file, how do I view the attributes in Merkaartor? Do I open the Shapefile in Merkaartor, then choose the attributes, then export to .osm or can I do this in Merkaartor with the newly created .osm file I have.
Then, how do you create the .xml tag based on the attribute needed for map file??
Thanks Petr! OK, once I have this folder structure down, The file I have is a .osm file, how do I view the attributes in Merkaartor? Do I open the Shapefile in Merkaartor, then choose the attributes, then export to .osm or can I do this in Merkaartor with the newly created .osm file I have.
Then, how do you create the .xml tag based on the attribute needed for map file??
Hi Scott,
Every element (point, line, polygon) has attached the list of key – value tags. Merkaartor should export all tags from SHP file to OSM file. So it doesn’t matter if you open SHP file or OSM file in Merkaartor. The tags should be identical - you need to select some geometry element and merkaartor shows the tags in “Properties” Window.
You need to create manualy file tag-mapping-shp.xml. Use file from tutorial as template. Mapsforge adds into generated maps only elements with tags defined in this XML. Mapsforge read OSM file and looking for geometry element with tags defined in tag-mapping-shp.xml . Lets open the file from tutorial where you can see that only ways which contain tags
key="_ENGTYPE_2_" value="District"
key="_ENGTYPE_2_" value="Statutory city"
will be add to the generated map. So you need to create own XML with key – value definition.
Unfortunately there isn’t any easy solution for converting SHP into Mapsforge format
Hi Scott,
Every element (point, line, polygon) has attached the list of key – value tags. Merkaartor should export all tags from SHP file to OSM file. So it doesn’t matter if you open SHP file or OSM file in Merkaartor. The tags should be identical - you need to select some geometry element and merkaartor shows the tags in “Properties” Window.
You need to create manualy file tag-mapping-shp.xml. Use file from tutorial as template. Mapsforge adds into generated maps only elements with tags defined in this XML. Mapsforge read OSM file and looking for geometry element with tags defined in tag-mapping-shp.xml . Lets open the file from tutorial where you can see that only ways which contain tags
key="_ENGTYPE_2_" value="District"
key="_ENGTYPE_2_" value="Statutory city"
will be add to the generated map. So you need to create own XML with key – value definition.
Unfortunately there isn’t any easy solution for converting SHP into Mapsforge format
Petr,
Thanks for the ongoing collaboration, I appreciate this. This makes sense now, I will work on this today and let you know how I make out.
Meanwhile.... two more quick questions. I know Locus Pro allows you to set a user-defines directory for Personal Maps (which I have done), can I set a user-defined directory for Items under the "Data" tab the same way?? If not, can I install the Locus Pro Application itself onto an external SD Card??? This ultimately would place the "Items" directory under the SD card. I am using a 32GB Class10/UHS1 card for faster refresh rates under the app and it does work well for the "Personal" Maps I have loaded.
As always, your input is highly desired, thank you once again.
Petr,
Thanks for the ongoing collaboration, I appreciate this. This makes sense now, I will work on this today and let you know how I make out.
Meanwhile.... two more quick questions. I know Locus Pro allows you to set a user-defines directory for Personal Maps (which I have done), can I set a user-defined directory for Items under the "Data" tab the same way?? If not, can I install the Locus Pro Application itself onto an external SD Card??? This ultimately would place the "Items" directory under the SD card. I am using a 32GB Class10/UHS1 card for faster refresh rates under the app and it does work well for the "Personal" Maps I have loaded.
As always, your input is highly desired, thank you once again.
Hello Scott,
Import of SHP file should solved new prepared applivation called Locus GIS http://www.locusmap.eu/locus-gis-android-gis-application/
To your second question: You can simply move whole Locus folder from internal storage to the external folder. Locus will find it and use it as working directory.
Please note: on Android KitKat 4.4.3 Locus working directory has to be located on internal storage
Hello Scott,
Import of SHP file should solved new prepared applivation called Locus GIS http://www.locusmap.eu/locus-gis-android-gis-application/
To your second question: You can simply move whole Locus folder from internal storage to the external folder. Locus will find it and use it as working directory.
Please note: on Android KitKat 4.4.3 Locus working directory has to be located on internal storage
Replies have been locked on this page!