当前位置: 首页>>代码示例>>Python>>正文


Python SystemTest.setup方法代码示例

本文整理汇总了Python中mapproxy.test.system.SystemTest.setup方法的典型用法代码示例。如果您正苦于以下问题:Python SystemTest.setup方法的具体用法?Python SystemTest.setup怎么用?Python SystemTest.setup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mapproxy.test.system.SystemTest的用法示例。


在下文中一共展示了SystemTest.setup方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: setup

# 需要导入模块: from mapproxy.test.system import SystemTest [as 别名]
# 或者: from mapproxy.test.system.SystemTest import setup [as 别名]
 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'))
开发者ID:GeoDodo,项目名称:mapproxy,代码行数:9,代码来源:test_wmts.py

示例2: setup

# 需要导入模块: from mapproxy.test.system import SystemTest [as 别名]
# 或者: from mapproxy.test.system.SystemTest import setup [as 别名]
 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")
开发者ID:atrawog,项目名称:mapproxy,代码行数:10,代码来源:test_sld.py

示例3: setup

# 需要导入模块: from mapproxy.test.system import SystemTest [as 别名]
# 或者: from mapproxy.test.system.SystemTest import setup [as 别名]
 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'))
开发者ID:atrawog,项目名称:mapproxy,代码行数:10,代码来源:test_scalehints.py

示例4: setup

# 需要导入模块: from mapproxy.test.system import SystemTest [as 别名]
# 或者: from mapproxy.test.system.SystemTest import setup [as 别名]
    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'
开发者ID:Anderson0026,项目名称:mapproxy,代码行数:10,代码来源:test_source_errors.py

示例5: setup

# 需要导入模块: from mapproxy.test.system import SystemTest [as 别名]
# 或者: from mapproxy.test.system.SystemTest import setup [as 别名]
 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'))
开发者ID:LKajan,项目名称:mapproxy,代码行数:10,代码来源:test_cache_band_merge.py

示例6: setup

# 需要导入模块: from mapproxy.test.system import SystemTest [as 别名]
# 或者: from mapproxy.test.system.SystemTest import setup [as 别名]
 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'))
开发者ID:Anderson0026,项目名称:mapproxy,代码行数:10,代码来源:test_legendgraphic.py

示例7: setup

# 需要导入模块: from mapproxy.test.system import SystemTest [as 别名]
# 或者: from mapproxy.test.system.SystemTest import setup [as 别名]
 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'
开发者ID:Anderson0026,项目名称:mapproxy,代码行数:10,代码来源:test_mixed_mode_format.py

示例8: setup

# 需要导入模块: from mapproxy.test.system import SystemTest [as 别名]
# 或者: from mapproxy.test.system.SystemTest import setup [as 别名]
 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'))
开发者ID:LKajan,项目名称:mapproxy,代码行数:11,代码来源:test_cache_s3.py

示例9: setup

# 需要导入模块: from mapproxy.test.system import SystemTest [as 别名]
# 或者: from mapproxy.test.system.SystemTest import setup [as 别名]
 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'))
开发者ID:LKajan,项目名称:mapproxy,代码行数:14,代码来源:test_wmsc.py

示例10: setup

# 需要导入模块: from mapproxy.test.system import SystemTest [as 别名]
# 或者: from mapproxy.test.system.SystemTest import setup [as 别名]
 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'))
开发者ID:GeoDodo,项目名称:mapproxy,代码行数:15,代码来源:test_renderd_client.py

示例11: setup

# 需要导入模块: from mapproxy.test.system import SystemTest [as 别名]
# 或者: from mapproxy.test.system.SystemTest import setup [as 别名]
 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",
         ),
     )
开发者ID:quiqua,项目名称:mapproxy,代码行数:19,代码来源:test_xslt_featureinfo.py

示例12: setup

# 需要导入模块: from mapproxy.test.system import SystemTest [as 别名]
# 或者: from mapproxy.test.system.SystemTest import setup [as 别名]
 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",
         ),
     )
开发者ID:olt,项目名称:mapproxy,代码行数:22,代码来源:test_cache_band_merge.py

示例13: setup

# 需要导入模块: from mapproxy.test.system import SystemTest [as 别名]
# 或者: from mapproxy.test.system.SystemTest import setup [as 别名]
 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",
         ),
     )
开发者ID:quiqua,项目名称:mapproxy,代码行数:22,代码来源:test_wmts.py

示例14: setup

# 需要导入模块: from mapproxy.test.system import SystemTest [as 别名]
# 或者: from mapproxy.test.system.SystemTest import setup [as 别名]
 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'))
开发者ID:tjay,项目名称:mapproxy,代码行数:8,代码来源:test_arcgis.py

示例15: setup

# 需要导入模块: from mapproxy.test.system import SystemTest [as 别名]
# 或者: from mapproxy.test.system.SystemTest import setup [as 别名]
 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'))
开发者ID:GeoDodo,项目名称:mapproxy,代码行数:8,代码来源:test_combined_sources.py


注:本文中的mapproxy.test.system.SystemTest.setup方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。