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

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
Callback that allows the ImageSource associated with a response to
be modified before it is returned. The callback is passed the
ImageSource instance and must return a valid ImageSource 

src/m/a/MapProxy-1.6.0/mapproxy/service/tile.py   MapProxy(Download)
        def decorate_img(image):
            query_extent = (layer.grid.srs.srs_code,
                layer.tile_bbox(tile_request, use_profiles=tile_request.use_profiles))
            return self.decorate_img(image, 'tms', [layer.name], tile_request.http.environ, query_extent)
 

src/m/a/mapproxy-HEAD/mapproxy/service/tile.py   mapproxy(Download)
        def decorate_img(image):
            query_extent = (layer.grid.srs.srs_code,
                layer.tile_bbox(tile_request, use_profiles=tile_request.use_profiles))
            return self.decorate_img(image, 'tms', [layer.name], tile_request.http.environ, query_extent)
 

src/m/a/MapProxy-1.6.0/mapproxy/service/wmts.py   MapProxy(Download)
        def decorate_img(image):
            query_extent = tile_layer.grid.srs.srs_code, tile_layer.tile_bbox(request)
            return self.decorate_img(image, 'wmts', [tile_layer.name], request.http.environ, query_extent)
 
        tile = tile_layer.render(request, coverage=limited_to, decorate_img=decorate_img)

src/m/a/MapProxy-1.6.0/mapproxy/service/wms.py   MapProxy(Download)
        # Provide the wrapping WSGI app or filter the opportunity to process the
        # image before it's wrapped up in a response
        result = self.decorate_img(result, 'wms.map', actual_layers.keys(),
            map_request.http.environ, (query.srs.srs_code, query.bbox))
 

src/m/a/mapproxy-HEAD/mapproxy/service/wmts.py   mapproxy(Download)
        def decorate_img(image):
            query_extent = tile_layer.grid.srs.srs_code, tile_layer.tile_bbox(request)
            return self.decorate_img(image, 'wmts', [tile_layer.name], request.http.environ, query_extent)
 
        tile = tile_layer.render(request, coverage=limited_to, decorate_img=decorate_img)

src/m/a/mapproxy-HEAD/mapproxy/service/wms.py   mapproxy(Download)
        # Provide the wrapping WSGI app or filter the opportunity to process the
        # image before it's wrapped up in a response
        result = self.decorate_img(result, 'wms.map', actual_layers.keys(),
            map_request.http.environ, (query.srs.srs_code, query.bbox))