User Tools

Site Tools


Exercise 7a: Download vectors from Openstreetmap

pktools: pkinfo GDAL/OGR: gdaltransform bash: wget, mv

Create a directory for this exercise

mkdir -p ${OUTPUTDIR}/exercise7

Find bounding box in ETRS89/LAEA coordinates:

pkinfo -bb -i ${LANDSATDIR}/${LANDSATIMG}

–ulx=3200000 –uly=3223750 –lrx=3394000 –lry=3091500

Convert to WGS85 (epsg:4326)

gdaltransform -s_srs epsg:3035 -t_srs epsg:4326
3200000 3223750
-6.12149425235321 51.005834806829 0
3394000 3091500
-3.05910611391153 50.189810829506 0

In format minx,miny,maxx,maxy:

-6.1214942523532, 50.189810829506, -3.05910611391153, 51.005834806829 

You can download a vector in your browser (or wget)

Downloading can take a while (425 MB to download)

You will get a file in XML format: xapi_meta.xml

Rename to osm

mv ~/Downloads/xapi_meta.xml ${OUTPUTDIR}/exercise7/xapi_meta.osm
wiki/exercise7a.txt · Last modified: 2017/12/05 22:53 (external edit)