[gdal-dev] identifying the fields from the .osm file

Etienne Trimaille etienne.trimaille at gmail.com
Fri Nov 18 17:39:51 PST 2016


Hi,

With ogr2ogr, you can't read all keys from an OSM file.

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.

2016-11-19 8:30 GMT+07:00 Djordje Spasic <issworld2000 at yahoo.com>:

> During the last couple of days, both Jukka and Even helped me with some
> .osm file issues. And I am grateful on that.
>
> I would like to ask one more question, if that's ok:
> 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.
> Is it possible to somehow save all those fields to a .shp or .txt file
> through ogr2ogr.exe?
>
> Thank you for the reply.
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20161119/5cc83702/attachment.html>


More information about the gdal-dev mailing list