Hello there,
I am new to OpenStreetMap and I try to figure out how to extract a waterbody map (not only coastlines) from the planet-latest.osm.pbf file.
Therefore I found this tutorial on github: https://github.com/ngageoint/mrgeo/wiki/osm-waterbodies
I installed all the dependencies and tried the first command but I get the following error message:
ERROR 1: “natural” not recognised as an available field.
Do I have to create a SQL-Database or something like that from the pbf file?
Thanks for the help
Read the documentation of ogr2ogr and about its config file which tells it how to interpret OSM data.
Also, try removing that or natural=‘water’ clause to check if it succeeds at all without it. Maybe ogr2ogr doesn’t work at all, but throws a fake error instead.