I can not figure out how I directly can read a polygon into gdawarp's -cutline argument.
My current approach is:
ogr2ogr -f "ESRI Shapefile" mydata.shp PG:"user=myuser dbname=gisdb" -sql "select * from polys where id='12345'"
and then I run
gdalwarp -cutline mydata.shp in.tif out.tif
How could I skip the step with the shapefile?
Thanks in advance for any hints
