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.GetDriverByName('OSM')
datasource = driver.Open(osmfile)
layer = datasource.GetLayer()

Is there a way to use it ?

Thanks
Regards
Etienne
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to