[gdal-dev] Why are fields required in osmconf.ini file?
issworld2000 at yahoo.com
Sat Dec 3 21:11:47 PST 2016
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev