Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mojodna
Created September 15, 2009 04:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mojodna/187105 to your computer and use it in GitHub Desktop.
Save mojodna/187105 to your computer and use it in GitHub Desktop.
from TileCache.Layer import Layer, Tile
Tile(Layer("foo", spherical_mercator=True, tms_type="google"), 607, 754, 11).bounds()
# y values are inverted
# nik2img.py tilecache/osm.xml mercator.png --srs 900913 -e -8159805.6428374983 5283327.3949249983 -8140237.7635999992 5263759.5156874992 -v -d 256 256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment