This object is in archive! 

Shapefile to Vector map?

Scott Owens shared this question 10 years ago
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??

Replies (7)

photo
0

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”

photo
0

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.

photo
0

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

photo
1

Petr,


I am trying to create my own vector map with shapefiles as you have described here. Do you have an updated link to the package (osmosis with map writer plugin) you created that you can share?

Thanks.

photo
1

Hi,

I've updated links on how to page to the new location of mapsforge project http://docs.locusmap.eu/doku.php?id=manual:map_tools:how_to_convert_shp_file_for_locus


Anyway conversion of SHPfile into mapsforge format is quite tricky. There is new project/app called Locus GIS and this app is able to read/create/edit native SHPfiles. Short overview: http://www.locusmap.eu/locus-gis-android-gis-application/

Let me know if you're interested in this app - it's still in beta version but it's quite powerful right now.

photo
1

Thanks Petr! That is what I needed. I am actually currently a beta tester of Locus GIS and it works quite well, but it does not currently have address search.


I am working on creating a custom vector map for our field crews and will use different themes based on their current task.

photo
1

OKi, so good luck with conversion and happy new year

photo
0

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??

photo
0

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

photo
0

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.

photo
1

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!