示例#1
0
 def test_REST_bad_layer(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/bogus_layer/default/default/0/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'LAYER',
                     'LAYER does not exist')
示例#2
0
 def test_kvp_bad_tilecol_value(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=infirth'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue',
                     'TILECOL', 'TILECOL is not a valid integer')
示例#3
0
 def test_kvp_tilecol_out_of_range(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=5'
     test_wmts_error(self, test_url, 400, 'TileOutOfRange', 'TILECOL',
                     'TILECOL is out of range, maximum value is 0')
示例#4
0
 def test_kvp_bad_request(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=getschwifty&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 501, 'OperationNotSupported',
                     'REQUEST', 'The request type is not supported')
示例#5
0
 def test_kvp_bad_layer(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=bogus_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'LAYER',
                     'LAYER does not exist')
 def test_kvp_missing_tilematrixset(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'MissingParameterValue', 'TILEMATRIXSET', 'Missing TILEMATRIXSET parameter')
示例#7
0
 def test_kvp_missing_tilecol(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0'
     test_wmts_error(self, test_url, 400, 'MissingParameterValue',
                     'TILECOL', 'Missing TILECOL parameter')
 def test_kvp_bad_format(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/jpeg&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'FORMAT', 'FORMAT is invalid for LAYER')
 def test_kvp_bad_tilecol_value(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=infirth'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'TILECOL', 'TILECOL is not a valid integer')
示例#10
0
 def test_kvp_bad_version(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=3.2.1&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'VERSION', 'VERSION is invalid')
示例#11
0
 def test_kvp_bad_layer(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=bogus_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'LAYER', 'LAYER does not exist')
示例#12
0
 def test_kvp_bad_request(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=getschwifty&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 501, 'OperationNotSupported', 'REQUEST', 'The request type is not supported')
示例#13
0
 def test_kvp_bad_service(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=tmnt&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'SERVICE', 'Unrecognized service')
示例#14
0
 def test_kvp_missing_tilecol(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0'
     test_wmts_error(self, test_url, 400, 'MissingParameterValue', 'TILECOL', 'Missing TILECOL parameter')
示例#15
0
 def test_REST_bad_tilematrixset_nodate(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/bogus_tilematrixset/0/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue',
                     'TILEMATRIXSET', 'TILEMATRIXSET is invalid for LAYER')
示例#16
0
 def test_kvp_invalid_tilematrix_(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=43&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'TILEMATRIX', 'Invalid TILEMATRIX')
示例#17
0
 def test_REST_bad_tilematrix_value(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/bogus/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue',
                     'TILEMATRIX', 'TILEMATRIX is not a valid integer')
示例#18
0
 def test_kvp_tilecol_out_of_range(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=5'
     test_wmts_error(self, test_url, 400, 'TileOutOfRange', 'TILECOL', 'TILECOL is out of range, maximum value is 0')
示例#19
0
 def test_kvp_missing_tilematrixset(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'MissingParameterValue',
                     'TILEMATRIXSET', 'Missing TILEMATRIXSET parameter')
示例#20
0
 def test_kvp_bad_time_format(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0&time=86753-09'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'TIME', 'Invalid time format, must be YYYY-MM-DD or YYYY-MM-DDThh:mm:ssZ')
示例#21
0
 def test_kvp_bad_service(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=tmnt&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue',
                     'SERVICE', 'Unrecognized service')
示例#22
0
 def test_REST_bad_layer(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/bogus_layer/default/default/0/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'LAYER', 'LAYER does not exist')
示例#23
0
 def test_kvp_bad_version(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=3.2.1&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue',
                     'VERSION', 'VERSION is invalid')
示例#24
0
 def test_REST_bad_style(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/bogus_style/default/0/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'STYLE', 'STYLE is invalid for LAYER')
示例#25
0
 def test_kvp_bad_format(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/jpeg&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'FORMAT',
                     'FORMAT is invalid for LAYER')
示例#26
0
 def test_REST_bad_tilematrixset_nodate(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/bogus_tilematrixset/0/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'TILEMATRIXSET', 'TILEMATRIXSET is invalid for LAYER')
示例#27
0
 def test_kvp_invalid_tilematrix_(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=43&tilerow=0&tilecol=0'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue',
                     'TILEMATRIX', 'Invalid TILEMATRIX')
示例#28
0
 def test_REST_invalid_tilematrix(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/10/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'TILEMATRIX', 'Invalid TILEMATRIX')
示例#29
0
 def test_kvp_bad_time_format(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/wmts.cgi?layer=test_layer&version=1.0.0&service=wmts&request=gettile&format=image/png&tilematrixset=GoogleMapsCompatible_Level6&tilematrix=0&tilerow=0&tilecol=0&time=86753-09'
     test_wmts_error(
         self, test_url, 400, 'InvalidParameterValue', 'TIME',
         'Invalid time format, must be YYYY-MM-DD or YYYY-MM-DDThh:mm:ssZ')
示例#30
0
 def test_REST_bad_tilerow_value(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/0/bogus/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'TILEROW', 'TILEROW is not a valid integer')
示例#31
0
 def test_REST_bad_style(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/bogus_style/default/0/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'STYLE',
                     'STYLE is invalid for LAYER')
示例#32
0
 def test_REST_tilecol_out_of_range(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/0/0/1.png'
     test_wmts_error(self, test_url, 400, 'TileOutOfRange', 'TILECOL', 'TILECOL is out of range, maximum value is 0')
示例#33
0
 def test_REST_invalid_tilematrix(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/10/0/0.png'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue',
                     'TILEMATRIX', 'Invalid TILEMATRIX')
示例#34
0
 def test_REST_bad_date_format(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/0/0/1.bogus'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'FORMAT',
                     'FORMAT is invalid for LAYER')
示例#35
0
 def test_REST_row_out_of_range(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/0/1/0.png'
     test_wmts_error(self, test_url, 400, 'TileOutOfRange', 'TILEROW',
                     'TILEROW is out of range, maximum value is 0')
示例#36
0
 def test_REST_bad_date_format(self):
     test_url = base_url + '/test_mod_reproject_wmts_err/test_layer/default/GoogleMapsCompatible_Level6/0/0/1.bogus'
     test_wmts_error(self, test_url, 400, 'InvalidParameterValue', 'FORMAT', 'FORMAT is invalid for LAYER')