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

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)
OGC KML 2.2 Server

src/m/a/MapProxy-1.6.0/mapproxy/config/loader.py   MapProxy(Download)
    def kml_service(self, conf):
        from mapproxy.service.kml import KMLServer
 
        md = self.context.services.conf.get('wms', {}).get('md', {}).copy()
        md.update(conf.get('md', {}))
        max_tile_age = self.context.globals.get_value('tiles.expires_hours')
        max_tile_age *= 60 * 60 # seconds
        use_grid_names = conf.get('use_grid_names', False)
        layers = self.tile_layers(conf, use_grid_names=use_grid_names)
        return KMLServer(layers, md, max_tile_age=max_tile_age, use_dimension_layers=use_grid_names)

src/m/a/mapproxy-HEAD/mapproxy/config/loader.py   mapproxy(Download)
    def kml_service(self, conf):
        from mapproxy.service.kml import KMLServer
 
        md = self.context.services.conf.get('wms', {}).get('md', {}).copy()
        md.update(conf.get('md', {}))
        max_tile_age = self.context.globals.get_value('tiles.expires_hours')
        max_tile_age *= 60 * 60 # seconds
        use_grid_names = conf.get('use_grid_names', False)
        layers = self.tile_layers(conf, use_grid_names=use_grid_names)
        return KMLServer(layers, md, max_tile_age=max_tile_age, use_dimension_layers=use_grid_names)

src/m/a/MapProxy-1.6.0/mapproxy/test/unit/test_auth.py   MapProxy(Download)
from mapproxy.service.wms import WMSLayer, WMSGroupLayer, WMSServer
from mapproxy.service.tile import TileServer
from mapproxy.service.kml import KMLServer, kml_request
from mapproxy.test.http import make_wsgi_env
from nose.tools import raises, eq_
    def setup(self):
        TestTMSAuth.setup(self)
        self.server = KMLServer(self.layers, {})
 
    def tile_request(self, tile, auth):

src/m/a/mapproxy-HEAD/mapproxy/test/unit/test_auth.py   mapproxy(Download)
from mapproxy.service.wms import WMSLayer, WMSGroupLayer, WMSServer
from mapproxy.service.tile import TileServer
from mapproxy.service.kml import KMLServer, kml_request
from mapproxy.test.http import make_wsgi_env
from nose.tools import raises, eq_
    def setup(self):
        TestTMSAuth.setup(self)
        self.server = KMLServer(self.layers, {})
 
    def tile_request(self, tile, auth):