예제 #1
0
 def setup(self):
     SystemTest.setup(self)
     self.common_req = WMS111MapRequest(url='/service?',
                                        param=dict(service='WMS',
                                                   version='1.1.1'))
     self.common_map_req = WMS111MapRequest(url='/service?',
                                            param=dict(service='WMS',
                                                       version='1.1.1',
                                                       bbox='-180,0,0,80',
                                                       width='200',
                                                       height='200',
                                                       layers='wms_cache',
                                                       srs='EPSG:4326',
                                                       format='image/png',
                                                       exceptions='xml',
                                                       styles='',
                                                       request='GetMap'))
     self.common_fi_req = WMS111FeatureInfoRequest(
         url='/service?',
         param=dict(x='10',
                    y='20',
                    width='200',
                    height='200',
                    layers='wms_cache',
                    format='image/png',
                    query_layers='wms_cache',
                    styles='',
                    bbox='1000,400,2000,1400',
                    srs='EPSG:900913'))
예제 #2
0
파일: test_wmsc.py 프로젝트: wkke/mapproxy
 def setup(self):
     SystemTest.setup(self)
     self.common_cap_req = WMS111CapabilitiesRequest(url='/service?',
                                                     param=dict(
                                                         service='WMS',
                                                         version='1.1.1'))
     self.common_map_req = WMS111MapRequest(
         url='/service?',
         param=dict(service='WMS',
                    version='1.1.1',
                    bbox='-20037508,0.0,0.0,20037508',
                    width='256',
                    height='256',
                    layers='wms_cache',
                    srs='EPSG:900913',
                    format='image/jpeg',
                    styles='',
                    request='GetMap'))
     self.common_fi_req = WMS111FeatureInfoRequest(
         url='/service?',
         param=dict(x='10',
                    y='20',
                    width='200',
                    height='200',
                    layers='wms_cache',
                    format='image/png',
                    query_layers='wms_cache',
                    styles='',
                    bbox='1000,400,2000,1400',
                    srs='EPSG:900913'))
예제 #3
0
 def setup(self):
     SystemTest.setup(self)
     self.common_cap_req = WMTS100CapabilitiesRequest(url='/service?', param=dict(service='WMTS',
          version='1.0.0', request='GetCapabilities'))
     self.common_tile_req = WMTS100TileRequest(url='/service?', param=dict(service='WMTS',
          version='1.0.0', tilerow='0', tilecol='0', tilematrix='01', tilematrixset='GLOBAL_MERCATOR',
          layer='wms_cache', format='image/jpeg', style='', request='GetTile'))
예제 #4
0
 def setup(self):
     SystemTest.setup(self)
     self.common_cap_req = WMTS100CapabilitiesRequest(url='/service?', param=dict(service='WMTS',
          version='1.0.0', request='GetCapabilities'))
     self.common_tile_req = WMTS100TileRequest(url='/service?', param=dict(service='WMTS',
          version='1.0.0', tilerow='0', tilecol='0', tilematrix='01', tilematrixset='GLOBAL_MERCATOR',
          layer='wms_cache', format='image/jpeg', style='', request='GetTile'))
예제 #5
0
 def setup(self):
     SystemTest.setup(self)
     self.common_req = WMS111MapRequest(url='/service?', param=dict(service='WMS',
          version='1.1.1'))
     self.common_lg_req_111 = WMS111LegendGraphicRequest(url='/service?',
         param=dict(format='image/png', layer='wms_legend', sld_version='1.1.0'))
     self.common_lg_req_130 = WMS130LegendGraphicRequest(url='/service?',
         param=dict(format='image/png', layer='wms_legend', sld_version='1.1.0'))
예제 #6
0
 def setup(self):
     SystemTest.setup(self)
     self.common_map_req = WMS111MapRequest(url='/service?', param=dict(service='WMS',
          version='1.1.1', bbox='0,0,10,10', width='200', height='200',
          srs='EPSG:4326', format='image/png', styles='', request='GetMap'))
     self.common_wms_url = ("/service?styles=&srs=EPSG%3A4326&version=1.1.1&"
         "bbox=0.0,0.0,10.0,10.0&service=WMS&format=image%2Fpng&request=GetMap"
         "&width=200&height=200")
예제 #7
0
 def setup(self):
     SystemTest.setup(self)
     self.common_req = WMS111MapRequest(url='/service?', param=dict(service='WMS', 
          version='1.1.1'))
     self.common_map_req = WMS111MapRequest(url='/service?', param=dict(service='WMS', 
          version='1.1.1', bbox='-180,0,0,80', width='200', height='200',
          layers='res', srs='EPSG:4326', format='image/png', transparent='true',
          styles='', request='GetMap'))
예제 #8
0
 def setup(self):
     SystemTest.setup(self)
     self.common_cap_req = WMTS100CapabilitiesRequest(url='/service?', param=dict(service='WMTS',
          version='1.0.0', request='GetCapabilities'))
     self.common_map_req = WMS111MapRequest(url='/service?', param=dict(service='WMS',
          version='1.1.1', bbox='-180,0,0,80', width='100', height='100',
          layers='dop_l', srs='EPSG:4326', format='image/png',
          styles='', request='GetMap'))
예제 #9
0
    def setup(self):
        SystemTest.setup(self)
        self.common_map_req = WMS111MapRequest(url='/service?', param=dict(service='WMS',
             version='1.1.1', bbox='0,-90,180,90', width='250', height='250',
             layers='tilesource', srs='EPSG:4326', format='image/png',
             styles='', request='GetMap', transparent=True))

        self.common_tile_req = '/tiles/tilesource/EPSG4326/1/1/0.png'
예제 #10
0
 def setup(self):
     SystemTest.setup(self)
     self.common_tile_req = WMTS100TileRequest(url='/service?', param=dict(service='WMTS',
          version='1.0.0', tilerow='0', tilecol='0', tilematrix='01', tilematrixset='GLOBAL_MERCATOR',
          layer='mixed_mode', format='image/png', style='', request='GetTile', transparent='True'))
     self.expected_base_path = '/service?SERVICE=WMS&REQUEST=GetMap&HEIGHT=256' \
         '&SRS=EPSG%3A900913&styles=&VERSION=1.1.1&WIDTH=512' \
         '&BBOX=-20037508.3428,0.0,20037508.3428,20037508.3428'
예제 #11
0
 def setup(self):
     SystemTest.setup(self)
     self.common_req = WMS111MapRequest(url='/service?', param=dict(service='WMS', 
          version='1.1.1'))
     self.common_lg_req_111 = WMS111LegendGraphicRequest(url='/service?',
         param=dict(format='image/png', layer='wms_legend', sld_version='1.1.0'))
     self.common_lg_req_130 = WMS130LegendGraphicRequest(url='/service?',
         param=dict(format='image/png', layer='wms_legend', sld_version='1.1.0'))
 def setup(self):
     SystemTest.setup(self)
     self.common_tile_req = WMTS100TileRequest(url='/service?', param=dict(service='WMTS', 
          version='1.0.0', tilerow='0', tilecol='0', tilematrix='01', tilematrixset='GLOBAL_MERCATOR',
          layer='mixed_mode', format='image/png', style='', request='GetTile', transparent='True'))
     self.expected_base_path = '/service?SERVICE=WMS&REQUEST=GetMap&HEIGHT=256' \
         '&SRS=EPSG%3A900913&styles=&VERSION=1.1.1&WIDTH=512' \
         '&BBOX=-20037508.3428,0.0,20037508.3428,20037508.3428'
예제 #13
0
 def setup(self):
     SystemTest.setup(self)
     self.common_map_req = WMS111MapRequest(url='/service?', param=dict(service='WMS', 
          version='1.1.1', bbox='0,-90,180,90', width='250', height='250',
          layers='tilesource', srs='EPSG:4326', format='image/png',
          styles='', request='GetMap', transparent=True))
     
     self.common_tile_req = '/tiles/tilesource/EPSG4326/1/1/0.png'
예제 #14
0
 def setup(self):
     SystemTest.setup(self)
     self.common_map_req = WMS111MapRequest(url='/service?',
         param=dict(service='WMS',
                    version='1.1.1', bbox='-150,-40,-140,-30',
                    width='100', height='100',
                    layers='default', srs='EPSG:4326',
                    format='image/png',
                    styles='', request='GetMap'))
예제 #15
0
 def setup(self):
     SystemTest.setup(self)
     self.common_map_req = WMS111MapRequest(url='/service?', param=dict(service='WMS',
          version='1.1.1', bbox='0,0,180,80', width='200', height='200',
          layers='mixed_mode', srs='EPSG:4326', format='image/png',
          styles='', request='GetMap', transparent='true'))
     self.expected_base_path = '/service?SERVICE=WMS&REQUEST=GetMap&HEIGHT=256' \
         '&SRS=EPSG%3A900913&styles=&VERSION=1.1.1&WIDTH=512' \
         '&BBOX=-20037508.3428,0.0,20037508.3428,20037508.3428'
 def setup(self):
     SystemTest.setup(self)        
     self.common_map_req = WMS111MapRequest(url='/service?', param=dict(service='WMS', 
          version='1.1.1', bbox='0,0,180,80', width='200', height='200',
          layers='mixed_mode', srs='EPSG:4326', format='image/png',
          styles='', request='GetMap', transparent='true'))
     self.expected_base_path = '/service?SERVICE=WMS&REQUEST=GetMap&HEIGHT=256' \
         '&SRS=EPSG%3A900913&styles=&VERSION=1.1.1&WIDTH=512' \
         '&BBOX=-20037508.3428,0.0,20037508.3428,20037508.3428'
예제 #17
0
 def setup(self):
     SystemTest.setup(self)
     self.common_map_req = WMS111MapRequest(url='/service?',
         param=dict(service='WMS',
                    version='1.1.1', bbox='-180,-80,0,0',
                    width='200', height='200',
                    layers='gpkg', srs='EPSG:4326',
                    format='image/png',
                    styles='', request='GetMap'))
예제 #18
0
 def setup(self):
     SystemTest.setup(self)
     self.common_cap_req = WMS111CapabilitiesRequest(url='/service?', param=dict(service='WMS',
          version='1.1.1'))
     self.common_map_req = WMS111MapRequest(url='/service?', param=dict(service='WMS',
          version='1.1.1', bbox='-20037508,0.0,0.0,20037508', width='256', height='256',
          layers='wms_cache', srs='EPSG:900913', format='image/jpeg',
          styles='', request='GetMap'))
     self.common_fi_req = WMS111FeatureInfoRequest(url='/service?',
         param=dict(x='10', y='20', width='200', height='200', layers='wms_cache',
                    format='image/png', query_layers='wms_cache', styles='',
                    bbox='1000,400,2000,1400', srs='EPSG:900913'))
예제 #19
0
 def setup(self):
     SystemTest.setup(self)
     self.common_req = WMS111MapRequest(url='/service?', param=dict(service='WMS',
          version='1.1.1'))
     self.common_map_req = WMS111MapRequest(url='/service?', param=dict(service='WMS',
          version='1.1.1', bbox='-180,0,0,80', width='200', height='200',
          layers='wms_cache', srs='EPSG:4326', format='image/png',
          exceptions='xml',
          styles='', request='GetMap'))
     self.common_fi_req = WMS111FeatureInfoRequest(url='/service?',
         param=dict(x='10', y='20', width='200', height='200', layers='wms_cache',
                    format='image/png', query_layers='wms_cache', styles='',
                    bbox='1000,400,2000,1400', srs='EPSG:900913'))
예제 #20
0
 def setup(self):
     SystemTest.setup(self)
     self.common_fi_req = WMS111FeatureInfoRequest(
         url='/service?',
         param=dict(x='10',
                    y='20',
                    width='200',
                    height='200',
                    layers='fi_layer',
                    format='image/png',
                    query_layers='fi_layer',
                    styles='',
                    bbox='1000,400,2000,1400',
                    srs='EPSG:900913'))
예제 #21
0
 def setup(self):
     SystemTest.setup(self)
     self.common_map_req = WMS111MapRequest(url='/service?',
                                            param=dict(service='WMS',
                                                       version='1.1.1',
                                                       bbox='9,50,10,51',
                                                       width='200',
                                                       height='200',
                                                       layers='online',
                                                       srs='EPSG:4326',
                                                       format='image/png',
                                                       styles='',
                                                       request='GetMap',
                                                       transparent=True))
예제 #22
0
 def setup(self):
     SystemTest.setup(self)
     self.common_fi_req = WMS111FeatureInfoRequest(
         url='/service?',
         param=dict(x='10',
                    y='20',
                    width='200',
                    height='200',
                    layers='app2_with_layers_fi_layer',
                    format='image/png',
                    query_layers='app2_with_layers_fi_layer',
                    styles='',
                    bbox='1000,400,2000,1400',
                    srs='EPSG:3857',
                    info_format='application/json'))
예제 #23
0
 def setup(self):
     SystemTest.setup(self)
     self.common_map_req = WMS111MapRequest(url='/service?',
                                            param=dict(service='WMS',
                                                       version='1.1.1',
                                                       bbox='0,0,10,10',
                                                       width='200',
                                                       height='200',
                                                       srs='EPSG:4326',
                                                       format='image/png',
                                                       styles='',
                                                       request='GetMap'))
     self.common_wms_url = (
         "/service?styles=&srs=EPSG%3A4326&version=1.1.1&"
         "bbox=0.0,0.0,10.0,10.0&service=WMS&format=image%2Fpng&request=GetMap"
         "&width=200&height=200")
예제 #24
0
 def setup(self):
     SystemTest.setup(self)
     self.common_fi_req = WMS111FeatureInfoRequest(
         url="/service?",
         param=dict(
             x="10",
             y="20",
             width="200",
             height="200",
             layers="fi_layer",
             format="image/png",
             query_layers="fi_layer",
             styles="",
             bbox="1000,400,2000,1400",
             srs="EPSG:900913",
         ),
     )
예제 #25
0
 def setup(self):
     SystemTest.setup(self)
     self.common_cap_req = WMTS100CapabilitiesRequest(
         url="/service?", param=dict(service="WMTS", version="1.0.0", request="GetCapabilities")
     )
     self.common_map_req = WMS111MapRequest(
         url="/service?",
         param=dict(
             service="WMS",
             version="1.1.1",
             bbox="-180,0,0,80",
             width="100",
             height="100",
             layers="dop_l",
             srs="EPSG:4326",
             format="image/png",
             styles="",
             request="GetMap",
         ),
     )
예제 #26
0
 def setup(self):
     SystemTest.setup(self)
     self.common_cap_req = WMTS100CapabilitiesRequest(
         url="/service?", param=dict(service="WMTS", version="1.0.0", request="GetCapabilities")
     )
     self.common_tile_req = WMTS100TileRequest(
         url="/service?",
         param=dict(
             service="WMTS",
             version="1.0.0",
             tilerow="0",
             tilecol="0",
             tilematrix="01",
             tilematrixset="GLOBAL_MERCATOR",
             layer="wms_cache",
             format="image/jpeg",
             style="",
             request="GetTile",
         ),
     )
예제 #27
0
 def setup(self):
     SystemTest.setup(self)
     self.expected_base_path = '/service?SERVICE=WMS&REQUEST=GetMap&HEIGHT=256' \
         '&SRS=EPSG%3A900913&styles=&VERSION=1.1.1&WIDTH=512' \
         '&BBOX=-20037508.3428,-20037508.3428,20037508.3428,0.0'
예제 #28
0
 def setup(self):
     SystemTest.setup(self)
     self.common_req = WMS111MapRequest(url='/service?',
                                        param=dict(service='WMS',
                                                   version='1.1.1'))
예제 #29
0
 def setup(self):
     SystemTest.setup(self)
     self.common_req = WMS111MapRequest(url='/service?', param=dict(service='WMS',
                                                                    version='1.1.1'))
예제 #30
0
 def setup(self):
     SystemTest.setup(self)
     self.common_fi_req = WMS111FeatureInfoRequest(url='/service?',
         param=dict(x='10', y='20', width='200', height='200', layers='app2_with_layers_fi_layer',
                    format='image/png', query_layers='app2_with_layers_fi_layer', styles='',
                    bbox='1000,400,2000,1400', srs='EPSG:3857', info_format='application/json'))
예제 #31
0
 def setup(self):
     SystemTest.setup(self)
     self.common_map_req = WMS111MapRequest(url='/service?', param=dict(service='WMS',
          version='1.1.1', bbox='9,50,10,51', width='200', height='200',
          layers='combinable', srs='EPSG:4326', format='image/png',
          styles='', request='GetMap'))
예제 #32
0
 def setup(self):
     SystemTest.setup(self)
예제 #33
0
 def setup(self):
     SystemTest.setup(self)
예제 #34
0
 def setup(self):
     SystemTest.setup(self)
     self.common_fi_req = WMS111FeatureInfoRequest(url='/service?',
         param=dict(x='10', y='20', width='200', height='200', layers='fi_layer',
                    format='image/png', query_layers='fi_layer', styles='',
                    bbox='1000,400,2000,1400', srs='EPSG:900913'))
 def setup(self):
     SystemTest.setup(self)        
     self.expected_base_path = '/service?SERVICE=WMS&REQUEST=GetMap&HEIGHT=256' \
         '&SRS=EPSG%3A900913&styles=&VERSION=1.1.1&WIDTH=512' \
         '&BBOX=-20037508.3428,-20037508.3428,20037508.3428,0.0'