[MapProxy] Reprojecting on the fly using an epsg file with tiles cached in EPSG:23031

Fabrellas Bertran, Isabel isabel.fabrellas at icc.cat
Mon Jul 25 08:38:16 EDT 2011


In MapProxy 1.1.0, we have 3 layers, one cached in EPSG:23031, one in
EPSG:4326 and one in EPSG:900913. There is a reference to an epsg file
in the configuration file.
When accessed from an OpenLayers visor in EPSG:25831, the first layer
doesn't project correctly to EPSG:25831, there is a horizontal
difference near 80 metres and a vertical difference of 130 metres.The
other layers project correctly.

I tested it previously in MapProxy 1.0.0, and the 3 layers project
correctly to EPSG:25831.

The configuration is:
..............
services:
  demo:
  kml:
  tms:
    # needs no arguments
  wms:
    srs: ['EPSG:4326','EPSG:23031','EPSG:900913','EPSG:25831']
    image_formats: ['image/png','image/jpeg']
    md:
      # metadata used in capabilities documents
      title: a
      abstract: Serveis WMS ICC (Mapproxy)
      online_resource: http://www.icc.cat/
      contact:
        person: Webmaster       
      access_constraints:
        This service is intended for private and evaluation use only.
        The data is licensed as Creative Commons Attribution-Share Alike
2.0
        (http://creativecommons.org/licenses/by-sa/2.0/)
      fees: 'None'

layers:
  topo_png_bicubic:
    title: topo_png_bicubic
    sources: [topo_png_bicubic_cache]
  topo_png_bicubic_900913:
    title: topo_png_bicubic_900913
    sources: [topo_png_bicubic_cache_900913]
  topo_png_bicubic_4326:
    title: topo_png_bicubic_4326
    sources: [topo_png_bicubic_cache_4326]

caches:
  topo_png_bicubic_cache:
    sources:  [topo5m_source]
    grids: [UTM23031]
    format: image/png
    image:
      resampling_method: bicubic
  topo_png_bicubic_cache_4326:
    sources:  [topo5m_source]
    grids: [global_geodetic_sqrt2]
    format: image/png
    image:
      resampling_method: bicubic
  topo_png_bicubic_cache_900913:
    sources:  [topo5m_source]
    grids: [GLOBAL_MERCATOR]
    format: image/png
    image:
      resampling_method: bicubic
sources:
  topo5m_source:
    type: wms
    req:
      url: http://shagrat0.icc.local/lizardtech/iserv/ows?
      layers: mtc5m
grids:
  global_geodetic_sqrt2:
    base: GLOBAL_GEODETIC
    res_factor: 'sqrt2'
  UTM23031:
    srs: EPSG:23031
    bbox: [258000,4485000,539600,4766600]

globals:
  image:
      resampling_method: bicubic
  srs:
     proj_data_dir: '.\srs'
  cache:
     meta_size: [2,2]
     base_dir: '.\cache_data'
.............
One request to the layer cached in 23031 and requested in 25831 is:
http://localhost:8080/service?LAYERS=topo_png_bicubic&FORMAT=image%2Fpng
&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application
%2Fvnd.ogc.se_inimage&SRS=EPSG%3A25831&BBOX=514290.3,4661715.685,514890.
3,4662315.685&WIDTH=600&HEIGHT=600

Isabel Fabrellas Bertran
Unitat de SIG - Web
Ext. 3283


-----Missatge original-----
De: Oliver Tonnhofer [mailto:olt at omniscale.de] 
Enviat: lunes, 25 de julio de 2011 10:46
Per a: Fabrellas Bertran, Isabel
A/c: mapproxy at lists.osgeo.org
Tema: Re: [MapProxy] Reprojecting on the fly using an epsg file with
tiles cached in EPSG:23031


On 25.07.2011, at 10:10, Fabrellas Bertran, Isabel wrote:
> Having tiles cached in EPSG:23031,  we need to reproject on the fly to
EPSG:25831,  using an epsg file with custom parameters.
> With  MapProxy 1.0.0, we got it, but with MapProxy 1.1.0 or 1.1.2 it
isn't possible, unless the tiles are cached in EPSG:4326 or EPSG:900913.
>  
> It seems that with MapProxy 1.1.0 or 1.1.2, the epsg file is not used
if the tiles are cached in EPSG:23031.
> Is there a limitation about the EPSG the tiles are cached, related to
the use of an epsg file?

There shouldn't be any. Can you give some more details? Requests you are
sending, errors, configurations....

Regards,
Oliver

-- 
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://bitbucket.org/olt | @oltonn






More information about the MapProxy mailing list