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

2016-11-19 Thread Etienne Trimaille
ought 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? > > > On Saturday, November 19, 2016 2:40 AM, Etienne Trimaille

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

2016-11-18 Thread Etienne Trimaille
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+0

Re: [gdal-dev] splitting other_tags from .osm file

2016-10-29 Thread Etienne Trimaille
As Even said, there is no way to get all tags as a separate field only with ogr2ogr. The 'all_tags' flag will use the HSTORE only. 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 plu

[gdal-dev] OGR API with an OSM file

2013-06-17 Thread Etienne Trimaille
Hi, I'm trying to use Python API with an OSM file. According to the documentation of OSM driver, we can use a custom OSM_CONFIG_FILE. http://www.gdal.org/ogr/drv_osm.html However, I can't find how to use my own config file with the API. from osgeo import ogr osmfile = 'test.osm' driver = ogr.G