User Tools

Site Tools


wiki:exercise7a

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)
wget http://overpass.osm.rambler.ru/cgi/xapi_meta?*[bbox=-6.121,50.190,-3.059,51.0058]

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)