Sweden/Sweden Corine 2006 Import

From OpenStreetMap Wiki
Jump to navigation Jump to search

Due to the low resolution, import of Corine data in Sweden is no longer encouraged, as of 2014. The text below is preserved for archival purposes.

broom

This article or section may contain out-of-date information. The information may no longer be correct, or may no longer have relevance.
If you know about the current state of affairs, please help keep everyone informed by updating this information. (Discussion)

Time to import some Corine data for Sweden

Corine Land Cover import has done only partially in Sweden.
(this page is a copy of Finland's page Finland Corine 2006 Import

Short plan

Let's import rest of the Corine 2006 Land Cover data to OSM!

  • Use either CLC 2006 v13 or v15, but v15 data layers have some coordinate transformation problems.
  • Conversion from source coordinate system (ETRS_1989_LAEA_52N_10E EPSG:3035) to EPSG:4326 with ogr2ogr (version 1.8.0)
    • ogr2ogr -f "ESRI Shapefile" -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 destinationfile.shp originalfile.shp
  • Combine different layers (see table below) to one single layer
  • Split layers to 0.5 degree rectangles
  • Compare current OSM data and Corine data. Filter out polygons which overlap existing polygons. <under a construction>
  • Convert data to OSM format with modified polyshp2osm.py
  • Load OSM-files to OSM database with JOSM
  • Manually edit border lines <need guideline for this>

Toolbox


Feel free to create scripts for use with ogr2ogr and ogr2osm.

.osm-files are available for classes 311, 312 and 313, split into 0.5 degree squares:

Note however that these files have not filtered out any polygons overlapping existing data.

Useful command-line stuff

ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c111.shp clc06_c111.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c112.shp clc06_c112.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c121.shp clc06_c121.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c122.shp clc06_c122.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c123.shp clc06_c123.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c124.shp clc06_c124.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c131.shp clc06_c131.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c132.shp clc06_c132.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c133.shp clc06_c133.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c141.shp clc06_c141.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c142.shp clc06_c142.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c211.shp clc06_c211.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c212.shp clc06_c212.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c213.shp clc06_c213.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c221.shp clc06_c221.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c222.shp clc06_c222.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c223.shp clc06_c223.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c231.shp clc06_c231.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c241.shp clc06_c241.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c242.shp clc06_c242.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c243.shp clc06_c243.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c244.shp clc06_c244.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c311.shp clc06_c311.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c312.shp clc06_c312.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c313.shp clc06_c313.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c321.shp clc06_c321.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c322.shp clc06_c322.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c323.shp clc06_c323.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c324.shp clc06_c324.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c331.shp clc06_c331.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c332.shp clc06_c332.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c333.shp clc06_c333.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c334.shp clc06_c334.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c335.shp clc06_c335.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c411.shp clc06_c411.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c412.shp clc06_c412.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c421.shp clc06_c421.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c422.shp clc06_c422.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c423.shp clc06_c423.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c511.shp clc06_c511.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c512.shp clc06_c512.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c521.shp clc06_c521.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c522.shp clc06_c522.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst 11 55.3 24.3 69.1 c523.shp clc06_c523.shp

Eller för att lite noggrannare plocka ut bara Sverige:

ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c111.shp clc06_c111.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c112.shp clc06_c112.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c121.shp clc06_c121.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c122.shp clc06_c122.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c123.shp clc06_c123.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c124.shp clc06_c124.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c131.shp clc06_c131.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c132.shp clc06_c132.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c133.shp clc06_c133.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c141.shp clc06_c141.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c142.shp clc06_c142.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c211.shp clc06_c211.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c212.shp clc06_c212.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c213.shp clc06_c213.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c221.shp clc06_c221.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c222.shp clc06_c222.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c223.shp clc06_c223.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c231.shp clc06_c231.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c241.shp clc06_c241.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c242.shp clc06_c242.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c243.shp clc06_c243.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c244.shp clc06_c244.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c311.shp clc06_c311.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c312.shp clc06_c312.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c313.shp clc06_c313.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c321.shp clc06_c321.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c322.shp clc06_c322.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c323.shp clc06_c323.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c324.shp clc06_c324.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c331.shp clc06_c331.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c332.shp clc06_c332.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c333.shp clc06_c333.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c334.shp clc06_c334.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c335.shp clc06_c335.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c411.shp clc06_c411.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c412.shp clc06_c412.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c421.shp clc06_c421.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c422.shp clc06_c422.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c423.shp clc06_c423.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c511.shp clc06_c511.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c512.shp clc06_c512.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c521.shp clc06_c521.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c522.shp clc06_c522.shp
ogr2ogr -f "ESRI Shapefile" -progress -wrapdateline -t_srs EPSG:4326 -clipdst sweden-polygon.shp c523.shp clc06_c523.shp

Konvertera shape filerna till OSM, taggar läggs till automatiskt!

python ogr2osm.py c111.shp -t clc_veg.py
python ogr2osm.py c112.shp -t clc_veg.py
python ogr2osm.py c121.shp -t clc_veg.py
python ogr2osm.py c122.shp -t clc_veg.py
python ogr2osm.py c123.shp -t clc_veg.py
python ogr2osm.py c124.shp -t clc_veg.py
python ogr2osm.py c131.shp -t clc_veg.py
python ogr2osm.py c132.shp -t clc_veg.py
python ogr2osm.py c133.shp -t clc_veg.py
python ogr2osm.py c141.shp -t clc_veg.py
python ogr2osm.py c142.shp -t clc_veg.py
python ogr2osm.py c211.shp -t clc_veg.py
python ogr2osm.py c212.shp -t clc_veg.py
python ogr2osm.py c213.shp -t clc_veg.py
python ogr2osm.py c221.shp -t clc_veg.py
python ogr2osm.py c222.shp -t clc_veg.py
python ogr2osm.py c223.shp -t clc_veg.py
python ogr2osm.py c231.shp -t clc_veg.py
python ogr2osm.py c241.shp -t clc_veg.py
python ogr2osm.py c242.shp -t clc_veg.py
python ogr2osm.py c243.shp -t clc_veg.py
python ogr2osm.py c244.shp -t clc_veg.py
python ogr2osm.py c311.shp -t clc_veg.py
python ogr2osm.py c312.shp -t clc_veg.py
python ogr2osm.py c313.shp -t clc_veg.py
python ogr2osm.py c321.shp -t clc_veg.py
python ogr2osm.py c322.shp -t clc_veg.py
python ogr2osm.py c323.shp -t clc_veg.py
python ogr2osm.py c324.shp -t clc_veg.py
python ogr2osm.py c331.shp -t clc_veg.py
python ogr2osm.py c332.shp -t clc_veg.py
python ogr2osm.py c333.shp -t clc_veg.py
python ogr2osm.py c334.shp -t clc_veg.py
python ogr2osm.py c335.shp -t clc_veg.py
python ogr2osm.py c411.shp -t clc_veg.py
python ogr2osm.py c412.shp -t clc_veg.py
python ogr2osm.py c421.shp -t clc_veg.py
python ogr2osm.py c422.shp -t clc_veg.py
python ogr2osm.py c423.shp -t clc_veg.py
python ogr2osm.py c511.shp -t clc_veg.py
python ogr2osm.py c512.shp -t clc_veg.py
python ogr2osm.py c521.shp -t clc_veg.py
python ogr2osm.py c522.shp -t clc_veg.py
python ogr2osm.py c523.shp -t clc_veg.py

Common tags

<TBD> clc:code clc:id note source: created by: area

Corine Land Cover classes

Use Corine_Land_Cover_tagging

CLC code CLC Name OSM tag Notes
131 Corine Mineral extraction site landuse=quarry
211 Corine Non-irrigated arable land landuse=farmland
231 Corine Pastures landuse=meadow
243 Corine Land principally occupied by agriculture landuse=farmland
311 Corine Broad-leaved forest landuse=forest + wood=deciduous
312 Corine Coniferous forest landuse=forest + wood=coniferous
313 Corine Mixed forest landuse=forest + wood=mixed
321 Corine Natural grasslands natural=grassland
322 Corine Moors and heathland natural=heath
324 Corine Transitional woodland shrub natural=scrub + wood=mixed
331 Corine Beaches, dunes, sands natural=beach
332 Corine Bare rocks natural=rock
333 Corine Sparsely vegetated areas natural=scrub
411 Corine Inland marshes natural=wetland + wetland=marsh
412 Corine Peat Bogs natural=wetland + wetland=bog

Test

Current situation

Still building process...