Skip to content
Permalink
Browse files
Shorten line and cleanup assert
  • Loading branch information
geographika committed Jun 5, 2019
1 parent ace3970 commit 04a9711f1e50a17352e8db0eb8b7887c92a332ca
Showing 1 changed file with 5 additions and 3 deletions.
@@ -290,8 +290,10 @@ def testSetSize(self):
class MapSetWKTTestCase(MapTestCase):

def testOGCWKT(self):
self.map.setWKTProjection('''PROJCS["unnamed",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563]],
PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]],
self.map.setWKTProjection('''PROJCS["unnamed",GEOGCS["WGS 84",DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563]],
PRIMEM["Greenwich",0],
UNIT["Degree",0.0174532925199433]],
PROJECTION["Albers_Conic_Equal_Area"],
PARAMETER["standard_parallel_1", 65], PARAMETER["standard_parallel_2", 55],
PARAMETER["latitude_of_center", 0], PARAMETER["longitude_of_center", -153],
@@ -302,7 +304,7 @@ def testOGCWKT(self):

assert proj4.find('+proj=aea') != -1
assert proj4.find('+datum=WGS84') != -1
assert (mapscript.projectionObj(proj4)).getUnits() != mapscript.MS_DD
assert mapscript.projectionObj(proj4).getUnits() != mapscript.MS_DD

def testESRIWKT(self):
self.map.setWKTProjection('ESRI::PROJCS["Pulkovo_1995_GK_Zone_2", GEOGCS["GCS_Pulkovo_1995", '

0 comments on commit 04a9711

Please sign in to comment.