[gdal-dev] Why are fields required in osmconf.ini file?
jratike80
jukka.rahkonen at maanmittauslaitos.fi
Sun Dec 4 09:03:40 PST 2016
Brad Hards wrote
>> 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?
> How could ogr2ogr possibly know what fields are in the file? It would
> require
> a full parse of the file, and likely give you many more fields than you
> possibly want in any case.
>
> Brad
Especially with shapefiles it is also practically impossible with any bigger
datasets. Dbf file can have only 255 fields, or 254 if fields may contain
NULL values https://msdn.microsoft.com/en-us/library/3kfd3hw9(v=vs.80).aspx.
There are 1012 different tags in the Irish OSM data today
http://taginfo.openstreetmap.ie/tags. It means that there are 758 more tags
than it is possible to save as fields into shapefiles.
-Jukka Rahkonen-
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Why-are-fields-required-in-osmconf-ini-file-tp5296342p5298525.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
More information about the gdal-dev
mailing list