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

All Samples(85)  |  Call(68)  |  Derive(0)  |  Import(17)
>>> me = MapExtent((5, 45, 15, 55), SRS(4326))
>>> me.llbbox
(5, 45, 15, 55)
>>> map(int, me.bbox_for(SRS(900913)))
[556597, 5621521, 1669792, 7361866]
>>> map(int, me.bbox_for(SRS(4326)))
[5, 45, 15, 55]

src/m/a/MapProxy-1.6.0/mapproxy/source/__init__.py   MapProxy(Download)
"""
 
from mapproxy.layer import (
    MapLayer, MapExtent, DefaultMapExtent, MapError, MapBBOXError, BlankImage, InfoLayer
)
    def __init__(self, coverage=None):
        MapLayer.__init__(self)
        self.extent = MapExtent((-180, -90, 180, 90), SRS(4326))
        self.transparent = True
        self.extent = MapExtent(coverage.bbox, coverage.srs) if coverage else DefaultMapExtent()

src/m/a/mapproxy-HEAD/mapproxy/source/__init__.py   mapproxy(Download)
"""
 
from mapproxy.layer import (
    MapLayer, MapExtent, DefaultMapExtent, MapError, MapBBOXError, BlankImage, InfoLayer
)
    def __init__(self, coverage=None):
        MapLayer.__init__(self)
        self.extent = MapExtent((-180, -90, 180, 90), SRS(4326))
        self.transparent = True
        self.extent = MapExtent(coverage.bbox, coverage.srs) if coverage else DefaultMapExtent()

src/m/a/MapProxy-1.6.0/mapproxy/source/wms.py   MapProxy(Download)
from mapproxy.image.merge import concat_legends
from mapproxy.image.transform import ImageTransformer
from mapproxy.layer import MapExtent, DefaultMapExtent, BlankImage, LegendQuery, MapQuery, MapLayer
from mapproxy.source import InfoSource, SourceError, LegendSource
from mapproxy.client.http import HTTPClientError
        self.res_range = res_range
        if self.coverage:
            self.extent = MapExtent(self.coverage.bbox, self.coverage.srs)
        else:
            self.extent = DefaultMapExtent()
            if self.supported_srs[idx] is not query.srs:
                query.srs = self.supported_srs[idx]
        if self.extent and not self.extent.contains(MapExtent(query.bbox, query.srs)):
            return self._get_sub_query(query, format)
        resp = self.client.retrieve(query, format)

src/m/a/mapproxy-HEAD/mapproxy/source/wms.py   mapproxy(Download)
from mapproxy.image.merge import concat_legends
from mapproxy.image.transform import ImageTransformer
from mapproxy.layer import MapExtent, DefaultMapExtent, BlankImage, LegendQuery, MapQuery, MapLayer
from mapproxy.source import InfoSource, SourceError, LegendSource
from mapproxy.client.http import HTTPClientError
        self.res_range = res_range
        if self.coverage:
            self.extent = MapExtent(self.coverage.bbox, self.coverage.srs)
        else:
            self.extent = DefaultMapExtent()
            if self.supported_srs[idx] is not query.srs:
                query.srs = self.supported_srs[idx]
        if self.extent and not self.extent.contains(MapExtent(query.bbox, query.srs)):
            return self._get_sub_query(query, format)
        resp = self.client.retrieve(query, format)

src/m/a/MapProxy-1.6.0/mapproxy/source/mapnik.py   MapProxy(Download)
from mapproxy.image import ImageSource
from mapproxy.image.opts import ImageOptions
from mapproxy.layer import MapExtent, DefaultMapExtent, BlankImage, MapLayer
from mapproxy.source import  SourceError
from mapproxy.client.log import log_request
        self._cache_map_obj = reuse_map_objects
        if self.coverage:
            self.extent = MapExtent(self.coverage.bbox, self.coverage.srs)
        else:
            self.extent = DefaultMapExtent()

src/m/a/mapproxy-HEAD/mapproxy/config/loader.py   mapproxy(Download)
def extents_for_srs(bbox_srs):
    from mapproxy.layer import DefaultMapExtent, MapExtent
    from mapproxy.srs import SRS
    extents = {}
    for srs in bbox_srs:
        if isinstance(srs, str):
            bbox = DefaultMapExtent()
        else:
            srs, bbox = srs['srs'], srs['bbox']
            bbox = MapExtent(bbox, SRS(srs))

src/m/a/mapproxy-HEAD/mapproxy/source/mapnik.py   mapproxy(Download)
from mapproxy.image import ImageSource
from mapproxy.image.opts import ImageOptions
from mapproxy.layer import MapExtent, DefaultMapExtent, BlankImage, MapLayer
from mapproxy.source import  SourceError
from mapproxy.client.log import log_request
        self._cache_map_obj = reuse_map_objects
        if self.coverage:
            self.extent = MapExtent(self.coverage.bbox, self.coverage.srs)
        else:
            self.extent = DefaultMapExtent()

src/m/a/mapproxy-HEAD/mapproxy/service/wms.py   mapproxy(Download)
from mapproxy.template import template_loader, bunch
from mapproxy.service import template_helper
from mapproxy.layer import DefaultMapExtent, MapExtent
 
get_template = template_loader(__name__, 'templates', namespace=template_helper.__dict__)
        if self.srs_extents and params.srs in self.srs_extents:
            # limit query to srs_extent if query is larger
            query_extent = MapExtent(params.bbox, SRS(params.srs))
            if not self.srs_extents[params.srs].contains(query_extent):
                limited_extent = self.srs_extents[params.srs].intersection(query_extent)

src/m/a/MapProxy-1.6.0/mapproxy/util/coverage.py   MapProxy(Download)
    def extent(self):
        from mapproxy.layer import MapExtent
 
        return MapExtent(self.bbox, self.srs)
 
    def extent(self):
        from mapproxy.layer import MapExtent
        return MapExtent(self.bbox, self.srs)
 
    @property

src/m/a/mapproxy-HEAD/mapproxy/util/coverage.py   mapproxy(Download)
    def extent(self):
        from mapproxy.layer import MapExtent
 
        return MapExtent(self.bbox, self.srs)
 
    def extent(self):
        from mapproxy.layer import MapExtent
        return MapExtent(self.bbox, self.srs)
 
    @property

  1 | 2  Next