Esempio n. 1
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'))
Esempio n. 2
0
 def test_endpoints(self):
     for endpoint in ('service', 'ows'):
         req = WMTS100CapabilitiesRequest(url='/%s?' % endpoint).copy_with_request_params(self.common_cap_req)
         resp = self.app.get(req)
         eq_(resp.content_type, 'application/xml')
         xml = resp.lxml
         assert validate_with_xsd(xml, xsd_name='wmts/1.0/wmtsGetCapabilities_response.xsd')
Esempio n. 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_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'))
Esempio n. 4
0
 def test_endpoints(self, app):
     for endpoint in ("service", "ows"):
         req = WMTS100CapabilitiesRequest(
             url="/%s?" % endpoint).copy_with_request_params(
                 self.common_cap_req)
         resp = app.get(req)
         assert resp.content_type == "application/xml"
         xml = resp.lxml
         assert validate_with_xsd(
             xml, xsd_name="wmts/1.0/wmtsGetCapabilities_response.xsd")
Esempio n. 5
0
 def 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_WEBMERCATOR",
             layer="multi_cache",
             format="image/png",
             style="",
             request="GetTile",
         ),
     )
Esempio n. 6
0
 def 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",
         ),
     )