Skip to content

Instantly share code, notes, and snippets.

@bengolder
Created April 18, 2012 12:08
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 bengolder/2413148 to your computer and use it in GitHub Desktop.
Save bengolder/2413148 to your computer and use it in GitHub Desktop.
EPSG to OGC WKT in Grasshopper
import urllib2
if EPSG:
url = 'http://spatialreference.org/ref/epsg/%s/ogcwkt/' % EPSG
f = urllib2.urlopen(url)
OGC_WKT = f.read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment