[gdal-dev] splitting other_tags from .osm file
Djordje Spasic
issworld2000 at yahoo.com
Sat Oct 29 14:07:08 PDT 2016
Thank you for the useful replies both Even and Jukka!
@Even Rouault:
Let me see if I understood you:
1) If I would like a particular key (field) from the other_tags, I can name it in the osmconf.ini's "attributes=". Then once the OGR2OGR performs the conversion from .osm to .shp, that particular key(field) will be taken out from the other_tags, and presented among other regular keys (fields).
2) But If I would like to get all keys (fields) from the other_tags, then I need to write a script which will split the other_tags string.
If I go with the second option, then there is something I do not understand. Here is an other_tags string example for OSM Munich location:
"addr:postcode"=>"80636","addr:street"=>"Marlene-Dietrich-Strasse"
I understand that postcode and street are keys (fields). And that 80636 and Marlene-Dietrich-Strasse are their respective values.
But what does the addr represent? Is this some sort of category of the key? And why do only keys in the other_tags have this subcategory label?
@Jukka Rahkonen: I am currently stuck with shapefile. We'll see if in future I will jump to Spatialite or GeoPackage file types. Thank you for the suggestion!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20161029/098a95dd/attachment-0003.html>
More information about the gdal-dev
mailing list