Extensive test suite, stats, and renderings of common crs

This commit is contained in:
Karim Bahgat
2015-08-05 01:35:29 +02:00
parent 0b1ed64736
commit e24e1493ae
37 changed files with 244 additions and 42 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
def find(datumname, crstype, strict=False):
if not strict:
datumname = datumname.lower()
datumname = datumname.lower().replace(" ","_")
for itemname,item in globals().items():
if itemname.startswith("_"):
continue
@@ -10,7 +10,7 @@ def find(datumname, crstype, strict=False):
if hasattr(item, crstype):
itemname = getattr(item, crstype)
if not strict:
itemname = itemname.lower()
itemname = itemname.lower().replace(" ","_")
if datumname == itemname:
return item
except:
Binary file not shown.
+2 -2
View File
@@ -2,7 +2,7 @@
def find(ellipsname, crstype, strict=False):
if not strict:
ellipsname = ellipsname.lower()
ellipsname = ellipsname.lower().replace(" ","_")
for itemname,item in globals().items():
if itemname.startswith("_"):
continue
@@ -10,7 +10,7 @@ def find(ellipsname, crstype, strict=False):
if hasattr(item, crstype):
itemname = getattr(item, crstype)
if not strict:
itemname = itemname.lower()
itemname = itemname.lower().replace(" ","_")
if ellipsname == itemname:
return item
except:
Binary file not shown.
+7 -2
View File
@@ -2,7 +2,7 @@
def find(projname, crstype, strict=False):
if not strict:
projname = projname.lower()
projname = projname.lower().replace(" ","_")
for itemname,item in globals().items():
if itemname.startswith("_"):
continue
@@ -10,7 +10,7 @@ def find(projname, crstype, strict=False):
if hasattr(item, crstype):
itemname = getattr(item, crstype)
if not strict:
itemname = itemname.lower()
itemname = itemname.lower().replace(" ","_")
if projname == itemname:
return item
except:
@@ -92,6 +92,11 @@ class Orthographic:
ogc_wkt = "Orthographic"
esri_wkt = "Orthographic"
class Stereographic:
proj4 = "stere"
ogc_wkt = "Stereographic"
esri_wkt = "Stereographic"
class PolarStereographic:
proj4 = "stere"
ogc_wkt = "Polar_Stereographic" # could also be just stereographic
Binary file not shown.
BIN
View File
Binary file not shown.