[gdal-dev] Why are fields required in osmconf.ini file?
Djordje Spasic
issworld2000 at yahoo.com
Thu Nov 17 13:20:02 PST 2016
Hello,
When converting an .osm file to .shp files with ogr2ogr.exe, one needs to define a list of required fields (keys) in gdal-data\osmconf.ini file, for each geometry type (points, lines, multipolygons, multilinestrings).Like so (labelled in red color):
[points]#common attributesosm_id=yesosm_version=noosm_timestamp=noosm_uid=noosm_user=noosm_changeset=no #keys to report as OGR fieldsattributes=name,barrier,highway,ref,address,is_in,place,man_made
Why is that so? Why do field names need to be predefined before their extraction from the .osm file?
Why can't only those fields which already exist in the .osm file, be extracted?
Thank you for the reply.
Kind regards,
Djordje Spasic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20161117/e1af7b1d/attachment-0001.html>
More information about the gdal-dev
mailing list