I'm trying to filter rivers, highways and water from a planet file in Osmosis as follows:
After that I turn the .pbf into GeoJSON with Ogr2ogr and then into .mbtiles with Tippecanoe. The highways and water work perfectly, but the rivers are messy: parts of every river works well while some parts have broken polygons, and others parts are shown as multilinestrings even though they should(?) be polygons. If you have any pointers on how to filter rivers properly I'd greatly appreciate it! (If this is the wrong forum for this question please redirect me!) asked 29 Jul '17, 21:11 Azei |
Not sure what osmosis and ogr2ogr are doing exactly, try with osmium:
Much easier command line and much faster than osmosis. There is also an answered 29 Jul '17, 21:32 Jochen Topf 2
It turns out ogr2ogr was the problem, converting waterway=river to lines when doing the .pbf to .geojson conversion when really they should be converted to polygons. With osmium export I got that working, thanks alot! Also for the record, osmium tags-filter turns out to be orders of magnitude faster and simpler than osmosis for anyone interested.
(30 Jul '17, 12:24)
Azei
|