<html><head></head><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:13px">Hi Jukka,<br id="yui_3_16_0_ym19_1_1478869614109_14825"><br id="yui_3_16_0_ym19_1_1478869614109_14826"><div id="yui_3_16_0_ym19_1_1478869614109_14827">Thank you for the quick and informative reply!</div><div id="yui_3_16_0_ym19_1_1478869614109_14828"><br id="yui_3_16_0_ym19_1_1478869614109_14829"></div>But I am not sure I understood you.<br id="yui_3_16_0_ym19_1_1478869614109_14830"><br id="yui_3_16_0_ym19_1_1478869614109_14831">So first I need to convert the .osm file to .shp files with ogr2ogr.exe<br id="yui_3_16_0_ym19_1_1478869614109_14832"><div id="yui_3_16_0_ym19_1_1478869614109_14833">And then I am calling the ogrinfo.exe on specific .shp file (multipolygons.dbf ?)</div><div id="yui_3_16_0_ym19_1_1478869614109_14834"><br id="yui_3_16_0_ym19_1_1478869614109_14835"></div><blockquote id="yui_3_16_0_ym19_1_1478869614109_14836"><div dir="ltr" id="yui_3_16_0_ym19_1_1478869614109_14837">ogr2ogr.exe --config OSM_USE_CUSTOM_INDEXING NO -skipfailures -f "ESRI Shapefile" output.shp input.osm</div><div id="yui_3_16_0_ym19_1_1478869614109_14838"><br id="yui_3_16_0_ym19_1_1478869614109_14839"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1478869614109_14840">ogrinfo.exe -dialect sqlite -sql "select geometry, building as bldg <br id="yui_3_16_0_ym19_1_1478869614109_14841" clear="none">from output.shp/multipolygons.dbf" input.osm.pbf</div></blockquote><div dir="ltr" id="yui_3_16_0_ym19_1_1478869614109_14842"><br id="yui_3_16_0_ym19_1_1478869614109_14843"></div>? <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 Friday, November 11, 2016 2:36 PM, jratike80 <jukka.rahkonen@maanmittauslaitos.fi> wrote:<br></font></div> <br><br> <div class="y_msg_container">Hi,<br clear="none"><br clear="none">You can rename the fields with SQL<br clear="none"><br clear="none">ogrinfo -dialect sqlite -sql "select geometry, building as bldg <br clear="none">from multipolygons" hamburg-latest.osm.pbf<br clear="none"><br clear="none">....<br clear="none">Geometry Column = GEOMETRY<br clear="none">bldg: String (0.0)<br clear="none">....<br clear="none"><br clear="none">Slight drawback is that you must include all the attributes in SELECT but<br clear="none">you can save the command into text file for reuse.<br clear="none"><br clear="none">-Jukka Rahkonen-<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-How-to-replace-an-osm-key-tp5295339p5295342.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/gdal-dev-How-to-replace-an-osm-key-tp5295339p5295342.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>