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?

2 Answers 2

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 and acknowledge you have read our privacy policy.

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