<div dir="ltr">As Even said, there is no way to get all tags as a separate field only with ogr2ogr.<div>The 'all_tags' flag will use the HSTORE only.</div><div><br></div><div>You can have a look to the QGIS QuickOSM plugin. With this plugin, you can open a local OSM file like yours and ask the plugin to parse every fields available. The plugin will manage to create a field for each OSM tag.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-30 4:27 GMT+07:00 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le samedi 29 octobre 2016 23:21:00, Djordje Spasic a écrit :<br>
> Thank you for the quick reply Even.<br>
><br>
> > You could as well putaddr:postcode as value in attribute=<br>
><br>
> This means that the name of the key (field) will be:"addr:postc", to<br>
> accommodate those 10 maximal characters reserved for shapefile key (field)<br>
> names?<br>
<br>
Yes. You could also do renaming with:<br>
<br>
ogr2ogr points.shp your.osm -sql "select \"addr:postcode\" as postcode from<br>
points"<br>
<br>
Or create a computed field in the osmconf.ini (untested, but should hopefully<br>
work):<br>
<br>
computed_attributes=postcode<br>
postcode=String<br>
postcode_sql="SELECT [addr:postcode]"<br>
<br>
<br>
> Even do you mind if I ask you what is the difference<br>
> betweenother_tags, and all_tags?There is an exaplanation in the<br>
> osmconf.ini: "all_tags" and"other_tags" are exclusive<br>
> But I do not understand it.<br>
<br>
Why not just experimenting ? This would be clearer than any explanations.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
______________________________<wbr>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/gdal-dev</a></div></div></blockquote></div><br></div>