Skip to content

Instantly share code, notes, and snippets.

@ajturner
Created December 16, 2008 16:59
Show Gist options
  • Save ajturner/36661 to your computer and use it in GitHub Desktop.
Save ajturner/36661 to your computer and use it in GitHub Desktop.
prj = Projection("+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over")
c0 = prj.forward(Coord(ll[0],ll[1]))
c1 = prj.forward(Coord(ll[2],ll[3]))
bbox = Envelope(c0.x,c0.y,c1.x,c1.y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment