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

All Samples(24)  |  Call(14)  |  Derive(0)  |  Import(10)

src/m/a/MapProxy-1.6.0/mapproxy/service/wmts.py   MapProxy(Download)
from mapproxy.util.coverage import load_limited_to
 
from mapproxy.template import template_loader, bunch
env = {'bunch': bunch}
get_template = template_loader(__name__, 'templates', namespace=env)
    def template_context(self):
        return dict(service=bunch(default='', **self.service),
                    restful=False,
                    layers=self.layers,
                    tile_matrix_sets=self.matrix_sets)
    def template_context(self):
        return dict(service=bunch(default='', **self.service),
                    restful=True,
                    layers=self.layers,
                    tile_matrix_sets=self.matrix_sets,
            scale_denom = res / (0.28 / 1000) * meter_per_unit(self.grid.srs)
            yield bunch(
                identifier=level,
                bbox=bbox,
                grid_size=grid_size,

src/m/a/mapproxy-HEAD/mapproxy/service/wmts.py   mapproxy(Download)
from mapproxy.util.coverage import load_limited_to
 
from mapproxy.template import template_loader, bunch
env = {'bunch': bunch}
get_template = template_loader(__name__, 'templates', namespace=env)
    def template_context(self):
        return dict(service=bunch(default='', **self.service),
                    restful=False,
                    layers=self.layers,
                    tile_matrix_sets=self.matrix_sets)
    def template_context(self):
        return dict(service=bunch(default='', **self.service),
                    restful=True,
                    layers=self.layers,
                    tile_matrix_sets=self.matrix_sets,
            scale_denom = res / (0.28 / 1000) * meter_per_unit(self.grid.srs)
            yield bunch(
                identifier=level,
                bbox=bbox,
                grid_size=grid_size,

src/m/a/MapProxy-1.6.0/mapproxy/service/tile.py   MapProxy(Download)
 
 
from mapproxy.template import template_loader, bunch
get_template = template_loader(__name__, 'templates')
 
    def _render_template(self, layers, service):
        template = get_template(self.template_file)
        return template.substitute(service=bunch(default='', **service), layers=layers)
 
    def _render_layer_template(self, layer, service):
        template = get_template(self.layer_template_file)
        return template.substitute(service=bunch(default='', **service), layer=layer)
    def _render_root_resource_template(self, service):
        template = get_template(self.root_resource_template_file)
        return template.substitute(service=bunch(default='', **service))
 
class TileLayer(object):

src/m/a/mapproxy-HEAD/mapproxy/service/tile.py   mapproxy(Download)
 
 
from mapproxy.template import template_loader, bunch
get_template = template_loader(__name__, 'templates')
 
    def _render_template(self, layers, service):
        template = get_template(self.template_file)
        return template.substitute(service=bunch(default='', **service), layers=layers)
 
    def _render_layer_template(self, layer, service):
        template = get_template(self.layer_template_file)
        return template.substitute(service=bunch(default='', **service), layer=layer)
    def _render_root_resource_template(self, service):
        template = get_template(self.root_resource_template_file)
        return template.substitute(service=bunch(default='', **service))
 
class TileLayer(object):

src/m/a/MapProxy-1.6.0/mapproxy/service/wms.py   MapProxy(Download)
from mapproxy.util.coverage import load_limited_to
from mapproxy.util.ext.odict import odict
from mapproxy.template import template_loader, bunch
from mapproxy.service import template_helper
 
    def _render_template(self, template):
        template = get_template(template)
        doc = template.substitute(service=bunch(default='', **self.service),
                                   layers=self.layers,
                                   formats=self.image_formats,

src/m/a/mapproxy-HEAD/mapproxy/service/wms.py   mapproxy(Download)
from mapproxy.util.coverage import load_limited_to
from mapproxy.util.ext.odict import odict
from mapproxy.template import template_loader, bunch
from mapproxy.service import template_helper
from mapproxy.layer import DefaultMapExtent, MapExtent
    def _render_template(self, template):
        template = get_template(template)
        doc = template.substitute(service=bunch(default='', **self.service),
                                   layers=self.layers,
                                   formats=self.image_formats,

src/m/a/MapProxy-1.6.0/mapproxy/service/demo.py   MapProxy(Download)
from mapproxy.source.wms import WMSSource
 
from mapproxy.template import template_loader, bunch
env = {'bunch': bunch}
get_template = template_loader(__name__, 'templates', namespace=env)

src/m/a/mapproxy-HEAD/mapproxy/service/demo.py   mapproxy(Download)
from mapproxy.source.wms import WMSSource
 
from mapproxy.template import template_loader, bunch
env = {'bunch': bunch}
get_template = template_loader(__name__, 'templates', namespace=env)

src/m/a/MapProxy-1.6.0/mapproxy/service/template_helper.py   MapProxy(Download)
 
from cgi import escape
from mapproxy.template import bunch
 
__all__ = ['escape', 'indent', 'bunch', 'wms100format', 'wms100info_format',

src/m/a/mapproxy-HEAD/mapproxy/service/template_helper.py   mapproxy(Download)
 
from cgi import escape
from mapproxy.template import bunch
 
__all__ = ['escape', 'indent', 'bunch', 'wms100format', 'wms100info_format',