80 |
self.assertEquals(proj.GetParameter("south"), "south") |
self.assertEquals(proj.GetParameter("south"), "south") |
81 |
|
|
82 |
def test_get_projection_units_geo(self): |
def test_get_projection_units_geo(self): |
83 |
"""Test Projection.GetProjectedUnits() for geographic projection""" |
"""Test Projection.GetProjectedUnits() for geographic projection. |
84 |
|
Test for the alias 'longlat' as well. |
85 |
|
""" |
86 |
proj = Projection(["proj=latlong", "to_meter=0.017453292519943295", |
proj = Projection(["proj=latlong", "to_meter=0.017453292519943295", |
87 |
"ellps=clrk66"]) |
"ellps=clrk66"]) |
88 |
self.assertEquals(proj.GetProjectedUnits(), PROJ_UNITS_DEGREES) |
self.assertEquals(proj.GetProjectedUnits(), PROJ_UNITS_DEGREES) |
89 |
|
proj = Projection(["proj=longlat", "to_meter=0.017453292519943295", |
90 |
|
"ellps=clrk66"]) |
91 |
|
self.assertEquals(proj.GetProjectedUnits(), PROJ_UNITS_DEGREES) |
92 |
|
|
93 |
def test_get_projection_units_normal(self): |
def test_get_projection_units_normal(self): |
94 |
"""Test Projection.GetProjectedUnits() for normal projection""" |
"""Test Projection.GetProjectedUnits() for normal projection""" |