<html><head></head><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1479549016316_3227" dir="ltr"><span id="yui_3_16_0_ym19_1_1479549016316_3408">Thank you for the quick reply Etienne!<br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479549016316_3632"><br><span id="yui_3_16_0_ym19_1_1479549016316_3630">I am stuck with ogr2ogr.exe, or GDAL C# libraries. I can not use QGIS or other applications.</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479549016316_3638"><span id="yui_3_16_0_ym19_1_1479549016316_3408"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1479549016316_3639"><span id="yui_3_16_0_ym19_1_1479549016316_3408">Indeed Even told me that identifying all fields in the .osm file, would require doing 2 read passes of the .osm file.<br>I thought that maybe there is a way of doing exactly that, where in the first read I would get all the fields, find only those that are unique, and then perform a second read by setting these fields in the osmconf.ini file?</span></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 Saturday, November 19, 2016 2:40 AM, Etienne Trimaille <etienne.trimaille@gmail.com> wrote:<br></font></div> <br><br> <div class="y_msg_container"><div id="yiv9391167137"><div><div dir="ltr">Hi,<div><br clear="none"></div><div>With ogr2ogr, you can't read all keys from an OSM file.</div><div><br clear="none"></div><div>As Even said, you have to use another loop to read all available keys in the file. You can have a look at the QGIS QuickOSM plugin. You can open a OSM file and ask the plugin to read all keys available in the file.</div><div class="yiv9391167137gmail_extra"><br clear="none"><div class="yiv9391167137gmail_quote">2016-11-19 8:30 GMT+07:00 Djordje Spasic <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:issworld2000@yahoo.com" target="_blank" href="mailto:issworld2000@yahoo.com">issworld2000@yahoo.com</a>></span>:<br clear="none"><blockquote class="yiv9391167137gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv9391167137yqt6976263713" id="yiv9391167137yqt54504"><div><div style="color:#000;background-color:#fff;font-family:verdana, helvetica, sans-serif;font-size:13px;"><div dir="ltr" id="yiv9391167137m_7401185731052404733m_-8290776194491433525yui_3_16_0_ym19_1_1479459858398_101199">During the last couple of days, both Jukka and Even helped me with some .osm file issues. And I am grateful on that.<br clear="none"></div><div dir="ltr" id="yiv9391167137m_7401185731052404733m_-8290776194491433525yui_3_16_0_ym19_1_1479459858398_101311"><br clear="none"></div><div dir="ltr" id="yiv9391167137m_7401185731052404733m_-8290776194491433525yui_3_16_0_ym19_1_1479459858398_101299">I would like to ask one more question, if that's ok:<br clear="none">Is it possible to open an .osm file through ogr2ogr.exe and somehow read all the fields (keys) used in that .osm file? The final list of those fields do not have to be unique, they can repeat.<br clear="none">Is it possible to somehow save all those fields to a .shp or .txt file through ogr2ogr.exe?<br clear="none"><br clear="none">Thank you for the reply.<br clear="none"></div></div></div></div><br clear="none">______________________________ _________________<br clear="none">
gdal-dev mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:gdal-dev@lists.osgeo.org" target="_blank" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.osgeo.org/">http://lists.osgeo.org/</a>mailman /listinfo/gdal-dev<br clear="none"></blockquote></div><br clear="none"></div></div></div></div><br><br></div> </div> </div> </div></div></body></html>