Last active
December 14, 2015 04:59
-
-
Save pdbartsch/5032363 to your computer and use it in GitHub Desktop.
Overpass export from OpenStreetMap (not working yet)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
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
do you need to flip your latitudes?
@jlar Yep...had to flip. Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
also, consider downloading ways instead of nodes if you're looking for buildings...they're probably more commonly in the db as polygons vs points. Maybe grab nodes if you're querying amenity=school ??