When I run ogr2ogr command to export some specific polygons from .osm.pbf file, downloaded from OSM, I get an error
Warning 1: layer names ignored in combination with -sql.
-sql tag to get get all polygons with defined amenity, leisure, bulding, ect...
I also define costum
osmconf.ini file for OSM driver to read some field I want to use. This step is configured usin
This is full command.
ogr2ogr -f "GPKG" osm_bldgs_exp4.gpkg us-latest.osm.pbf multipolygons -sql "select * from multipolygons where amenity is not null or leisure is not null or shop is not null or tourism is not null or historic is not null or building not in ('yes', null)" -overwrite -progress -oo CONFIG_FILE="C:\Program Files\QGIS 3.10\share\gdal\osmconf.ini"
Process continues to go on, but I am not sure what to expect in a final result.