I've downloaded the CLC from https://land.copernicus.eu/pan-european/corine-land-cover/clc2018?tab=download as a geopackage because I could not find geopackages for just Germany.

Thus the datasize is quite big, i.e. too big for my project. I need the data for Germany only.

Is there a way to filter/delete all other regions but for Germany within the geopackage?


1 Answer 1


You can achieve that in the command line using ogr2ogr that is part of gdal library as follows:

ogr2ogr -progress -f GPKG -spat xmin ymin xmax ymax output.gpkg input.gpkg 

where flag -spat is an intersecting bounding box in the coordinates of your reference system (spatial query extents, in the SRS of the source layer(s) (or the one specified with -spat_srs). Only features whose geometry intersects the extents will be selected. The geometries will not be clipped unless -clipsrc is specified).

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.