Expanded on the various docstrings

This commit is contained in:
Karim Bahgat
2015-08-04 14:40:14 +02:00
parent 63a5becca1
commit bc800b688c
5 changed files with 155 additions and 31 deletions
+4 -3
View File
@@ -61,9 +61,10 @@ def crscode_to_string(codetype, code, format):
"""
Lookup crscode on spatialreference.org and return in specified format.
- codetype: "epsg", "esri", or "sr-org"
- code: The code
- format: The crs format of the returned string. One of "ogcwkt", "esriwkt", or "proj4", but also several others...
Arguments:
- *codetype*: "epsg", "esri", or "sr-org".
- *code*: The code.
- *format*: The crs format of the returned string. One of "ogcwkt", "esriwkt", or "proj4", but also several others...
"""
link = 'http://spatialreference.org/ref/%s/%s/%s/' %(codetype,code,format)
result = urllib2.urlopen(link).read()