[Dutch] Get Corine!

Milo van der Linden milo op opengeogroep.nl
Wo Jan 18 13:17:04 PST 2012


Vandaag wilde ik de corine vectorbestanden gaan gebruiken op een
testgeoserver om eens te checken welke mogelijkheden deze mooie
dataset biedt. Ik ontdekte dat het hele downloaden van corine nogal
omslachtig is. Waarom?

Op de pagina van de dataset:
http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version
MOET je in principe elke link aanklikken, dan aangeven waarvoor je de
set wilt gebruiken en dan pas op download drukken. 3 x klikken en dan
begint de download.

Ik wil corine niet op mijn PC. Ik wil niet klikken. Ik wil gewoon
alles in een keer downloaden op mijn server.

Wat heb ik gedaan?

1. Javascript uitgezet met de tool QuickJS. Nu hoef je nog maar één
keer te klikken... per bestand, voor mij nog te veel werk
2. Ik heb alle corine url's in een textbestand gezet
3. Ik heb het textbestand aangepast zodat alle 43 corine downloads
keurig netjes achter elkaar kunnen worden gerund en ter plekke worden
uitgepakt.

Het was even een vervelend werkje. Een vervelend werkje dat ik niemand
wil aandoen. Daarom hierbij het volledige downloadscript, voor de
liefhebbers. Let wel op dat je de regeleinden goed overneemt, dat wil
nog wel eens verkeerd gaan.

Het werkt, momenteel draait mijn download script keurig op een debian server.

Veel plezier er mee!

wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/111-continuous-urban-fabric/clc06_c111.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/112-discontinuous-urban-fabric/clc06_c112.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/121-industrial-or-commercial-units/clc06_c121.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/122-road-and-rail-networks/clc06_c122.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/123-port-areas/clc06_c123.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/124-airports/clc06_c124.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/131-mineral-extraction-sites/clc06_c131.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/132-dump-sites/clc06_c132.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/133-construction-sites/clc06_c133.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/141-green-urban-areas/clc06_c141.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/142-sport-and-leisure-facilities/clc06_c142.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/211-non-irrigated-arable-land/clc06_c211.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/212-permanently-irrigated-land/clc06_c212.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/213-rice-fields/clc06_c213.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/221-vineyards/clc06_c221.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/222-fruit-trees-and-berry-plantations/clc06_c222.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/223-olive-groves/clc06_c223.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/231-pastures/clc06_c231.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/241-annual-crops-associated-with/clc06_c241.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/242-complex-cultivation-patterns/clc06_c242.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/243-land-principally-occupied-by/clc06_c243.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/311-broad-leaved-forest/clc06_c311.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/312-coniferous-forest/clc06_c312.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/313-mixed-forest/clc06_c313.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/321-natural-grasslands/clc06_c321.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/322-moors-and-heathland/clc06_c322.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/323-sclerophyllous-vegetation/clc06_c323.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/324-transitional-woodland-shrub/clc06_c324.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/331-beaches-dunes-sands/clc06_c331.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/332-bare-rocks/clc06_c332.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/333-sparsely-vegetated-areas/clc06_c333.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/334-burnt-areas/clc06_c334.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/335-glaciers-and-perpetual-snow/clc06_c335.zip-1/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/411-inland-marshes/clc06_c411.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/412-peat-bogs/clc06_c412.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/421-salt-marshes/clc06_c421.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/422-salines/clc06_c422.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/423-intertidal-flats/clc06_c423.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/511-water-courses/clc06_c511.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/512-water-bodies/clc06_c512.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/521-coastal-lagoons/clc06_c521.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/522-estuaries/clc06_c522.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip
wget http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1/523-sea-and-ocean/clc06_c523.zip/at_download/file
-O temp.zip; unzip temp.zip; rm temp.zip



More information about the Dutch mailing list