mirror of
https://github.com/wassname/PyCRS.git
synced 2026-09-12 12:10:50 +08:00
Extensive test suite, stats, and renderings of common crs
This commit is contained in:
@@ -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,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.
@@ -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.
Binary file not shown.
Reference in New Issue
Block a user