5

I want to use a shapefile of the Corine Land Cover. This covers all of Europe, but I am only interested in the area of Scandinavia.

How can I cut this file using free software (preferably a command line tool)? I tried ogr2ogr

C:\Program Files\GDAL>ogr2ogr.exe -f "ESRI Shapefile" c:\Users\Christoph\geo\corine\clc06_c312_coniferous\clc06_c312_dalarna.shp c:\Users\Christoph\geo\corine\clc06_c312_coniferous\clc06_c312.shp -clipdst 0 60 20 70

but without any usable result (just almost empty files).

2
  • 1
    Have you got a vector data which is the border of your area of interest (Scandinavia)? If yes you can use a clip tool in Quantum gis (Vector->geometry tools).
    – com
    Dec 30, 2011 at 13:31
  • Corine files are huge, I doubt ftools can handle them @com
    – underdark
    Dec 30, 2011 at 13:53

2 Answers 2

6

See the example at the bottom of the ogr2ogr page, and note the "-t_srs EPSG:4326", which reprojects the file. When I looked at a Corine .prj file just now, it was in ETRS_1989_LAEA_L52_M10 projection, which uses meters not degrees. Once you reproject, I suspect your -clipdst settings will work.

1
  • Thanks a lot. That was the right solution for my problem.
    – user5307
    Dec 31, 2011 at 20:48
1

You can use the SQL features of OGR and create a select query to extract only selected polygons. See Link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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