<div dir="ltr"><div><div><div><div><div><div>Dear List,<br><br></div>  I have some issues 
getting river boundaries out of OSM data when using GDAL to read e.g. an
 OSM xml file downloaded via the overpass API. Using e.g.:<br><br>>ogr2ogr -t_srs EPSG:3857  -f SQLITE -dsco SPATIALITE=YES --config OSM_USE_CUSTOM_INDEXING NO map.sqlite map.osm<br><br>>ogrinfo --version<br>GDAL 2.1.0, released 2016/04/25<br><br></div>Specifically
 I have been trying with the River Thames in London. For some parts of 
the river it works, and I get features in the 'lines' layer with 
waterway='riverbank', that are closed. But for many locations I get no 
features (lines or multlipolygons) that can be used to bound the river - links to some images and OSM data below.<br><br></div><div>When running the ogr2ogr command, I do get an errror:<br><br>ERROR 1: Too many tags in relation 62149,<br><br></div><div>which is not unusual though..<br></div><div><br></div>However, the osm2pqsql tool seems to be able to handle the various cases and I do get nice polygons bounding the river.<br><br></div>Hope
 that someone can shed some can shed some light on what can be done. Is 
it a complex situation, that OGR currently cannot handle, or can I tune 
some parameters or the osmconf.ini file to be able to handle these 
cases? I am aware that rivers can be tagged in several different ways.<br><br></div><div>OSM data:<br><a href="https://dl.dropboxusercontent.com/u/97068354/map.osm">https://dl.dropboxusercontent.com/u/97068354/map.osm</a><br></div><div><br></div><div>Images:<br><a href="https://dl.dropboxusercontent.com/u/97068354/London_thames.png">https://dl.dropboxusercontent.com/u/97068354/London_thames.png</a><br><a href="https://dl.dropboxusercontent.com/u/97068354/London_thames.pgw">https://dl.dropboxusercontent.com/u/97068354/London_thames.pgw</a><br><a href="https://dl.dropboxusercontent.com/u/97068354/thames_from_osm2pgsql.png">https://dl.dropboxusercontent.com/u/97068354/thames_from_osm2pgsql.png</a><br><a href="https://dl.dropboxusercontent.com/u/97068354/thames_from_osm2pgsql.pgw">https://dl.dropboxusercontent.com/u/97068354/thames_from_osm2pgsql.pgw</a><br></div><div><br></div>Best Regards and Happy New Year!<br></div>Simon Kokkendorff<br></div>