[MapProxy] Problems defining custom layer BBOX

dirk.thalheim at bkg.bund.de dirk.thalheim at bkg.bund.de
Mon Feb 25 00:46:47 PST 2019


Dear list,

the documentations says for bbox_srs in WMS service configuration:
You can also define an explicit bbox for specific SRS. This bbox will overwrite all layer extents for that SRS.
...
You can use this to offer global datasets with SRS that are only valid in a local region, like UTM zones.

We're using a service configuration where a WMS service provides a layer based on a cache. The cache has two grid definitions: a global worldwide one and a local one restricted to Europe. The restricted area extends the normal area for the projection, so that we can cover a larger area with map data. Therefore we wanted to use the bbox_srs option. However it seems that the entered values are not published within the capabilities document.

When using the configuration
    bbox_srs:
      - srs: 'EPSG:25832'
        bbox: [-1370000, 3800000, 2100000, 8020000]

It will result in
    <BoundingBox CRS="EPSG:25832" minx="-3569958.16681" miny="3621950.28682" maxx="4271789.10791" maxy="8504003.767"/>

For me it's absolutely not clear where those values come from, as they are nowhere defined within the configuration. Has this something to do that the custom extend is clearly larger than the projections extend?

I've tested this behavior on MapProxy Version 1.12.0a0.post20190225. The configuration to reproduce the issue is:

services:
  demo:
  wms:
    srs: ['CRS:84', 'EPSG:4326', 'EPSG:3857', 'EPSG:25832']
    bbox_srs:
      - 'CRS:84'
      - 'EPSG:4326'
      - 'EPSG:3857'
      - srs: 'EPSG:25832'
        bbox: [-1370000, 3800000, 2100000, 8020000]
  wmts:

layers:
  - name: 'web'
    title: Web
    sources: [cache_topplus_web]

caches:
  cache_topplus_web:
    grids: [WEBMERCATOR,EU_EPSG_25832_TOPPLUS]
    # this is just a dummy configuration to reproduce the issue
    # the real service uses a pre seeded cache
    sources: []
    disable_storage: true

grids:
  WEBMERCATOR:
    base: GLOBAL_WEBMERCATOR
    num_levels: 19

  EU_EPSG_25832_TOPPLUS:
    srs: 'EPSG:25832'
    bbox:  [-3803165.98427299, 2544186.72572701, 3710899.64427299, 8805908.08284866]
    bbox_srs: 'EPSG:25832'
    origin: 'ul'
    tile_size: [256, 256]
    res: [4891.96981025128,
          2445.98490512564,
          1222.99245256282,
          611.49622628141,
          305.748113140705,
          152.874056570353,
          76.4370282851763,
          38.2185141425881,
          19.1092570712941,
          9.55462853564703,
          4.77731426782352,
          2.38865713391176,
          1.19432856695588,
          0.597164283477939]

Kind regards,

Dirk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20190225/59e013fc/attachment-0001.html>


More information about the MapProxy mailing list