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:
Karim Bahgat
2015-08-05 04:08:43 +02:00
parent e24e1493ae
commit 5b0f3a31bb
76 changed files with 132 additions and 31 deletions
+6 -1
View File
@@ -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"