mirror of
https://github.com/wassname/PyCRS.git
synced 2026-07-17 11:23:56 +08:00
Improved bugs and added proj/datu/ellip names leading to much better test coverage (70-90% of the crs test cases)
This commit is contained in:
@@ -15,7 +15,7 @@ def find(unitname, crstype, strict=False):
|
||||
if unitname == itemname:
|
||||
return item
|
||||
# special handling of wkt meters which has multiple possibilities
|
||||
elif isinstance(item(), Meter) and crstype.endswith("wkt") and not strict and unitname in ("meters","meter","metre"):
|
||||
elif isinstance(item(), Meter) and crstype.endswith("wkt") and not strict and unitname in ("meters","meter","metre","m"):
|
||||
return item
|
||||
except:
|
||||
pass
|
||||
@@ -39,3 +39,8 @@ class Feet:
|
||||
proj4 = "..."
|
||||
ogc_wkt = "Foot_US"
|
||||
esri_wkt = "Foot_US"
|
||||
|
||||
class Unknown:
|
||||
proj4 = ""
|
||||
ogc_wkt = "Unknown"
|
||||
esri_wkt = "Unknown"
|
||||
|
||||
Reference in New Issue
Block a user