Skip to content
nvkelso edited this page Jan 20, 2012 · 2 revisions

For LL to Merc Meters

Download:

svn co svn+ssh://studio.stamen.com/var/svn/lib/trunk/python/whereami

Usage:

cd /Users/nvkelso/whereami

What Merc meters at this LL?

python whereami.py 37 -122

What M meter in this BBox?

python whereami.py 37 -122 36 -124

python /Users/nvkelso/whereami/whereami.py 55.933817894564726 37.24090576171875 55.51230436155251 38.1500244140625

results in:

southwest: 55.51230436 37.24090576 northeast: 55.93381789 38.15002441 upper-left: 4145638.67 7545251.94 lower-right: 4246841.29 7461935.58 near tile: 9/309/160

http://pafciu17.dev.openstreetmap.org/?width=512&polygons=37.240906%2C55.512304%2C37.240906%2C55.933818%2C38.150024%2C55.933818%2C38.150024%2C55.512304%2Ccolor%3A0%3A0%3A0%3B37.265625%2C55.379110%2C37.265625%2C55.776573%2C37.968750%2C55.776573%2C37.968750%2C55.379110%2Ctransparency%3A102%2Cthickness%3A3%2Ccolor%3A0%3A0%3A0&bbox=37.127266%2C55.986507%2C38.263664%2C55.459615&module=map&height=384

then edit the makefile, to run the makefile, “make” in that dir, watch ZIPs create (reload the view if necc.)

Brussles:

python /Users/nvkelso/whereami/whereami.py 50.93246905060334 4.21051025390625 50.75904732375726 4.56207275390625

What tile here:

python whereami.py 37 -122 10

What LL at this ZXY:

python whereami.py 8/40/100

Launch browser OSM map of that area

open "python whereami.py 37 -122 10"