def __init__(self, layers, md, max_tile_age=None, template=None): WMTSServer.__init__(self, layers, md) self.max_tile_age = max_tile_age self.template = template or self.default_template self.url_converter = URLTemplateConverter(self.template) self.request_parser = make_wmts_rest_request_parser(self.url_converter) self.capabilities_class = partial(RestfulCapabilities, url_converter=self.url_converter)
def parser(self): return make_wmts_rest_request_parser( URLTemplateConverter( "/{Layer}/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.{Format}" ), FeatureInfoURLTemplateConverter( "/{Layer}/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}/{I}/{J}.{InfoFormat}" ), )
def __init__(self, layers, md, max_tile_age=None, template=None, fi_template=None, info_formats={}): WMTSServer.__init__(self, layers, md) self.max_tile_age = max_tile_age self.template = template or self.default_template self.fi_template = fi_template or self.default_info_template self.info_formats = info_formats self.url_converter = URLTemplateConverter(self.template) self.fi_url_converter = FeatureInfoURLTemplateConverter(self.fi_template) self.request_parser = make_wmts_rest_request_parser(self.url_converter, self.fi_url_converter) self.capabilities_class = partial(RestfulCapabilities, url_converter=self.url_converter, fi_url_converter=self.fi_url_converter)