<html><head></head><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:13px"><span id="yui_3_16_0_ym19_1_1480881474553_26902">Thank you for the information once again Jukka!</span><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: verdana, helvetica, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Sunday, December 4, 2016 6:03 PM, jratike80 <jukka.rahkonen@maanmittauslaitos.fi> wrote:<br></font></div> <br><br> <div class="y_msg_container">Brad Hards wrote<div class="yqt0742688949" id="yqtfd32828"><br clear="none">>> Why is that so? Why do field names need to be predefined before their<br clear="none">>> extraction from the .osm file?<br clear="none">>><br clear="none">>> Why can't only those fields which already exist in the .osm file, be <br clear="none">>> extracted?<br clear="none">> How could ogr2ogr possibly know what fields are in the file? It would<br clear="none">> require <br clear="none">> a full parse of the file, and likely give you many more fields than you <br clear="none">> possibly want in any case.<br clear="none">> <br clear="none">> Brad</div><br clear="none"><br clear="none">Especially with shapefiles it is also practically impossible with any bigger<br clear="none">datasets. Dbf file can have only 255 fields, or 254 if fields may contain<br clear="none">NULL values <a shape="rect" href="https://msdn.microsoft.com/en-us/library/3kfd3hw9" target="_blank">https://msdn.microsoft.com/en-us/library/3kfd3hw9</a>(v=vs.80).aspx.<br clear="none">There are 1012 different tags in the Irish OSM data today<br clear="none"><a shape="rect" href="http://taginfo.openstreetmap.ie/tags." target="_blank">http://taginfo.openstreetmap.ie/tags. </a>It means that there are 758 more tags<br clear="none">than it is possible to save as fields into shapefiles.<br clear="none"><br clear="none">-Jukka Rahkonen-<br clear="none"><br clear="none"><br clear="none"><br clear="none"><br clear="none">--<br clear="none">View this message in context: <a shape="rect" href="http://osgeo-org.1560.x6.nabble.com/gdal-dev-Why-are-fields-required-in-osmconf-ini-file-tp5296342p5298525.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/gdal-dev-Why-are-fields-required-in-osmconf-ini-file-tp5296342p5298525.html</a><br clear="none">Sent from the GDAL - Dev mailing list archive at Nabble.com.<br clear="none">_______________________________________________<br clear="none">gdal-dev mailing list<br clear="none"><a shape="rect" ymailto="mailto:gdal-dev@lists.osgeo.org" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br clear="none"><a shape="rect" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br><br></div> </div> </div> </div></div></body></html>