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?

nmtoken
  • 13,355
  • 5
  • 38
  • 87

2 Answers2

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.

til_b
  • 5,074
  • 1
  • 19
  • 36
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

Dmitry Baryshnikov
  • 3,221
  • 13
  • 17