Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I want to use a shape file 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 commandline 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).

share|improve this question
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 '11 at 13:31
    
Corine files are huge, I doubt ftools can handle them @com –  underdark Dec 30 '11 at 13:53
add comment

2 Answers

up vote 4 down vote accepted

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.

share|improve this answer
    
Thanks a lot. That was the right solution for my problem. –  user5307 Dec 31 '11 at 20:48
add comment

You can use the SQL features of OGR and create a select query to extract only selected polygons. See http://www.gdal.org/ogr/ogr_sql.html

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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