[GRASS-user] wget (corine) "landcover_tiles_v2" for greece works, but not for europe(?)

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Mon Jan 12 10:19:33 EST 2009


# get GR_100K.shp which is GREEA18328I.zip [1] from [2]
# under the column "CellCode" are listed all tiles (in this case all
tiles which cover Greece) with their exact name.

#v.db.connect -p
## if requiredδημιουργία της σύνδεσης αν δεν υφίσταται
# db.connect driver=sqlite 
database=/geo/grassdb/ellas/laea/PERMANENT/sqlite.d

# import GR_100K.shp
v.in.ogr dsn=/geo/geodata/europe/GREEA18328I/GR_100K.shp 
out=eea_gr_100k --o

# check newly imported table
db.select eea_gr_100k

cat|CellCode|EofOrigin|NofOrigin
1|100kmE51N18|5100000|1800000
2|100kmE51N19|5100000|1900000
3|100kmE52N16|5200000|1600000
4|100kmE52N17|5200000|1700000
5|100kmE52N18|5200000|1800000
6|100kmE52N19|5200000|1900000
7|100kmE52N20|5200000|2000000
8|100kmE53N15|5300000|1500000
9|100kmE53N16|5300000|1600000
10|100kmE53N17|5300000|1700000
[...]

# create file with tiles-list
db.select eea_gr_100k -c | cut -d"|" -f2 > corine_tiles_ellas

100kmE51N18
100kmE51N19
100kmE52N16
100kmE52N17
100kmE52N18
100kmE52N19
[...]

# wget within a for loop
for x in `cat corine_tiles_ellas`; do wget 
http://dataservice.eea.europa.eu/staticfiles/landcover_tiles_v2/$x.zip; 
done

--2009-01-12 15:12:26--  
http://dataservice.eea.europa.eu/staticfiles/landcover_tiles_v2/100kmE51N18.zip
Resolving dataservice.eea.europa.eu... 217.74.209.209
Connecting to dataservice.eea.europa.eu|217.74.209.209|:80... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 408346 (399K) [application/x-zip-compressed]
Saving to: `100kmE51N18.zip'
100%
[============================>] 408,346     1.12M/s   in 0.3s
2009-01-12 15:12:27 (1.12 MB/s) - `100kmE51N18.zip' saved 
[408346/408346]
[...]


Now, if I try to repeat this process for the whole of europe (based on
the file Grid_ETRS89_LAEA5210_100K), I only get 31KB files which are
corrupted (?) and anyway, they are to small to carry any information.
What could be the reason?

Thanks, Nikos


[1] http://dataservice.eea.europa.eu/download.asp?id=18328&filetype=.zip
[2] http://dataservice.eea.europa.eu/dataservice/metadetails.asp?id=760
[3] http://dataservice.eea.europa.eu/download.asp?id=16267&filetype=.zip



More information about the grass-user mailing list