OSMAND Data Preparation

147 views
Skip to first unread message

PM

unread,
Dec 30, 2014, 5:50:22 AM12/30/14
to osm...@googlegroups.com
Any help is appreciated converting data from Shapefiles to OBF format to use used by OSMAND. I want to add my local streets data to a copy of local OSM data. 1- I downloaded data from OSM in shapefiles and added my local streets retaining the data model (Done ArcMap).  2-converted shapefiles to OSM format by using both JOSM and Merkaator. OSM file(s) were created successfully. As a final step, I used OSMANDCreator to turn OSM file to OBF. OBF file is created is always empty.
When I convert an OSM file directly downloaded from OpenStreenMap, it work.

What an I doing wrong? Please provide me details if you experienced this problem and were able to fix or find a workaround.

Pere Pujal i Carabantes

unread,
Dec 30, 2014, 6:11:09 AM12/30/14
to osm...@googlegroups.com
El dt 30 de 12 de 2014 a les 02:50 -0800, en/na PM va escriure:
Yesterday I created a custom map with my modifications, I did like this:
in JOSM download the area I want to modify, modify it and save in .osm
format, then with osmandmapcreator generate the obf file
Later I putted it inside the osmand folder and tested.

Hope this helps
Pere

malikpb

unread,
Dec 30, 2014, 7:24:36 AM12/30/14
to osm...@googlegroups.com
It seems like you kept yourself limited to OSM environment. I my case I have a large data set in ArcGIS including shapefiles. I downloaded shapefiles from OSM. After merginging data I tried to convert. OBF file is always empty. There appears to be things missing from shapefile to OSM conversion




Sent from Samsung tablet.
--
You received this message because you are subscribed to a topic in the Google Groups "Osmand" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/osmand/3u9urbQMFG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stephan75

unread,
Dec 30, 2014, 12:06:35 PM12/30/14
to osm...@googlegroups.com
Hello PM,

to find a solution it would be goog tohave a tiny example of your data files ... is that possible without breaking any privacy / copyright?
Or can you create any anonymized sample data?

Stephan

Pervaiz Malik

unread,
Dec 30, 2014, 1:43:08 PM12/30/14
to osm...@googlegroups.com
You can try the following. Download  a sample OSM  data for any area in shapefiles. Convert these shapefiles to OSM (*.osm). I used JOSM for this conversion. Now convert that *.osm to *.obf using OSMANDMAPCREATOR. You will empty obf file. 

On the other hand if you download OSM sample data in *.osm and convert that to obf, it works. 

Somehow shape to OSM does something wrong.

Sent from my iPhone

Pere Pujal i Carabantes

unread,
Dec 31, 2014, 5:46:19 AM12/31/14
to osm...@googlegroups.com
El dt 30 de 12 de 2014 a les 21:42 +0300, en/na Pervaiz Malik va
escriure:
> You can try the following. Download a sample OSM data for any area in shapefiles. Convert these shapefiles to OSM (*.osm). I used JOSM for this conversion. Now convert that *.osm to *.obf using OSMANDMAPCREATOR. You will empty obf file.
>

Well, I did that for Anctartica(the smallest shapehile download from
geofabrick):
open in josm (let's call it the shape layer)
zoom to some mapped area
downlod the openstreetmap data for this area in a new layer (call the
osm layer)
Compare the same road between layers
save each layer to a different osm file and compare the files

As results I see:

The id of the road is changed
The original openstreetmap id is still available in the shape layer as a
tag: <tag k='osm_id' v='191725117' />

The highway tag disappears and is changed to a type tag:
osm-> <tag k='highway' v='tertiary' />
shape-> <tag k='type' v='tertiary' />

A bunch of irrelevant tags added to the entities in the shape


I'd bet that recovering the highway tag will be enough for
osmandmapcreator to create some output...


HTH
Pere

malikpb

unread,
Dec 31, 2014, 7:38:06 AM12/31/14
to osm...@googlegroups.com
Thanks for this nice effort. I suspected somethig like this but I was hoping that many users in OSMAND user community may have experienced this. I am still hoping to find a well tried solution to this problem. Shapefiles are still commonly used by a large ArcGIS community out there. 

One option could be to perform the OSM and shapefile data merger in JOSM and not in ArcGIS.

Reply all
Reply to author
Forward
0 new messages