Permalink
Browse files

WGS84 projection definition change, and WEB METADATA addition

  • Loading branch information...
geographika committed Mar 12, 2018
1 parent 4411fcb commit 0c04a2b02917ccd894bdc57647b376e6e0cadd06
Showing with 3 additions and 3 deletions.
  1. +3 −3 mapscript/python/tests/cases/maptest.py
@@ -212,7 +212,7 @@ def testFirstKeyAccess(self):
def testLastKeyAccess(self):
"""MapMetaDataTestCase.testLastKeyAccess: last metadata key is correct value"""
key = self.map.getFirstMetaDataKey()
for i in range(3):
for i in range(4):
key = self.map.getNextMetaDataKey(key)
assert key is not None
key = self.map.getNextMetaDataKey(key)
@@ -227,7 +227,7 @@ def testMapMetaData(self):
if not key:
break
keys.append(key)
assert keys == ['key1', 'key2', 'key3', 'key4'], keys
assert keys == ['key1', 'key2', 'key3', 'key4', 'ows_enable_request'], keys
def testLayerMetaData(self):
"""MapMetaDataTestCase.testLayerMetaData: layer metadata keys are correct values"""
keys = []
@@ -301,7 +301,7 @@ def testWellKnownGEOGCS(self):
self.map.setWKTProjection('WGS84')
proj4 = self.map.getProjection()
assert proj4.find( '+proj=longlat' ) != -1, proj4
assert proj4.find( '+ellps=WGS84' ) != -1, proj4
assert proj4.find( '+datum=WGS84' ) != -1, proj4
assert (mapscript.projectionObj(proj4)).getUnits() != mapscript.MS_METERS
# ===========================================================================

0 comments on commit 0c04a2b

Please sign in to comment.