Skip to content

Instantly share code, notes, and snippets.

@pdbartsch
Last active December 14, 2015 04:59
Show Gist options
  • Save pdbartsch/5032363 to your computer and use it in GitHub Desktop.
Save pdbartsch/5032363 to your computer and use it in GitHub Desktop.
Overpass export from OpenStreetMap (not working yet)
wget -O buildingSchool.osm http://overpass.osm.rambler.ru/cgi/xapi?node[building=school][bbox=-120.722519,34.288326,-119.405861,35.133329][@meta]
wget -O buildingUniversity.osm http://overpass.osm.rambler.ru/cgi/xapi?node[building=university][bbox=-120.722519,34.288326,-119.405861,35.133329][@meta]
wget -O amenitySchool.osm http://overpass.osm.rambler.ru/cgi/xapi?node[amenity=school][bbox=-120.722519,34.288326,-119.405861,35.133329][@meta]
wget -O amenityUniversity.osm http://overpass.osm.rambler.ru/cgi/xapi?node[amenity=university][bbox=-120.722519,34.288326,-119.405861,35.133329][@meta]
wget -O UCSB_hydrants.osm http://overpass.osm.rambler.ru/cgi/xapi?node[emergency=fire_hydrant][bbox=-119.8908,34.3994,-119.8333,34.4283][@meta]
//[building="school"]
//[building="university"]
//[amenity="school"]
//[amenity="university"]
//To fire up WGET on my windows installation: navigate to C:\Users\USERNAME\Downloads\wget-1.11.4-1-bin\bin Then Shift+Right click, THEN "Open command window here"
@oeon
Copy link

oeon commented Feb 25, 2013

wget -O schools.osm http://overpass.osm.rambler./cgi/xapi?way[building=school][bbox=-121.34792,34.89752,-119.47262,35.79522][@meta] works for me in SLO County bbox

@oeon
Copy link

oeon commented Feb 25, 2013

do you need to flip your latitudes?

@pdbartsch
Copy link
Author

@jlar Yep...had to flip. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment