<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I'm trying to use Python API with an OSM file.<br><br></div>According to the documentation of OSM driver, we can use a custom OSM_CONFIG_FILE.<br><a href="http://www.gdal.org/ogr/drv_osm.html">http://www.gdal.org/ogr/drv_osm.html</a><br>

<br></div>However, I can't find how to use my own config file with the API.<br><br>from osgeo import ogr<br><br>osmfile = 'test.osm'<br>driver = ogr.GetDriverByName('OSM')<br>datasource = driver.Open(osmfile)<br>

layer = datasource.GetLayer()<br><br></div>Is there a way to use it ?<br><br></div>Thanks<br></div>Regards<br>Etienne<br></div>