Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

        def wmts_request(req, validate=True):
    req_type = _parse_request_type(req)

    req_class = request_mapping.get(req_type, None)
    if req_class is None:
        # use map request to get an exception handler for the requested version
        dummy_req = request_mapping['tile'](param=req.args, url=req.base_url,
                                            validate=False)
        raise RequestError("unknown WMTS request type '%s'" % req_type, request=dummy_req)
    return req_class(param=req.args, url=req.base_url, validate=True, http=req)
        


src/m/a/MapProxy-1.6.0/mapproxy/service/wmts.py   MapProxy(Download)
from functools import partial
 
from mapproxy.request.wmts import (
    wmts_request, make_wmts_rest_request_parser,
    URLTemplateConverter,

src/m/a/mapproxy-HEAD/mapproxy/service/wmts.py   mapproxy(Download)
from functools import partial
 
from mapproxy.request.wmts import (
    wmts_request, make_wmts_rest_request_parser,
    URLTemplateConverter,

src/m/a/MapProxy-1.6.0/mapproxy/test/unit/test_request_wmts.py   MapProxy(Download)
# limitations under the License.
 
from mapproxy.request.wmts import wmts_request, WMTS100CapabilitiesRequest
from mapproxy.request.wmts import URLTemplateConverter, InvalidWMTSTemplate
from mapproxy.request.base import url_decode
def test_tile_request():
    url = '''requeST=GetTile&service=wmts&tileMatrixset=EPSG900913&
tilematrix=2&tileROW=4&TILECOL=2&FORMAT=image/png&Style=&layer=Foo&version=1.0.0'''
    req = wmts_request(dummy_req(url))
 
def test_capabilities_request():
    url = '''requeST=GetCapabilities&service=wmts'''
    req = wmts_request(dummy_req(url))
 
    assert isinstance(req, WMTS100CapabilitiesRequest)

src/m/a/mapproxy-HEAD/mapproxy/test/unit/test_request_wmts.py   mapproxy(Download)
# limitations under the License.
 
from mapproxy.request.wmts import wmts_request, WMTS100CapabilitiesRequest
from mapproxy.request.wmts import URLTemplateConverter, InvalidWMTSTemplate
from mapproxy.request.base import url_decode
def test_tile_request():
    url = '''requeST=GetTile&service=wmts&tileMatrixset=EPSG900913&
tilematrix=2&tileROW=4&TILECOL=2&FORMAT=image/png&Style=&layer=Foo&version=1.0.0'''
    req = wmts_request(dummy_req(url))
 
def test_capabilities_request():
    url = '''requeST=GetCapabilities&service=wmts'''
    req = wmts_request(dummy_req(url))
 
    assert isinstance(req, WMTS100CapabilitiesRequest)