0

I currently use gdalwarp to clip a GeoTIFF file using a single shapefile. However, I would like to have the option of creating a clipped GeoTIFF file using multiple countries together.

Is using GDAL the proper way to approach this?

1

If the countries are adjacent to each other you could first dissolve (see https://gis.stackexchange.com/a/85046/15183 ) using ogr2ogr and then use the dissolved polygon for clipping.

0

You can merge all cutline geometries in single shape file in one or separate features. Additionally you can use such command line options:

  • -cwhere expression
  • -csql query
  • -cblend distance

For details see http://www.gdal.org/gdalwarp.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.