Is it possible to subset the image with the polygon shape (more than four edges) instead of polygon bounds using subset-operator/snappy?

Yes, this is possible. You can specify a polygon in WKT-format.
For example with gpt on the command line:


The ‘geoRegion’ parameter can also be used when using snappy.
But in the end always the bounding box of this region is used. Because in the end a raster needs to be created and rasters are rectangular.

There is the Land/Sea Mask operator which can mask the area outside of the polygon after the subsetting.
See:

1 Like