本文整理汇总了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'))
示例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")
示例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'))
示例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'
示例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'))
示例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'))
示例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'
示例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'))
示例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'))
示例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'))
示例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",
),
)
示例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",
),
)
示例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",
),
)
示例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'))
示例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'))