[MapProxy] GeoTiff support

François Van Der Biest francois.vanderbiest at camptocamp.com
Tue Jul 24 08:29:14 PDT 2012


Hi guys,

I'm using MapProxy to proxy requests to a local mapserver.
My question is about GeoTiff support in this setup.

In my setup, the mapserver natively serves GeoTiff with correct
positioning and CRS information.
For instance, a query to :
/mapserv?LAYERS=current_magnitude_ms,current_uv&FORMAT=image%2Ftiff&TIME=2012-06-24T01&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A4326&BBOX=-2.527008%2C48.662346%2C-1.61377%2C49.110725&WIDTH=1330&HEIGHT=653
allows me to download a file which gdalinfo reports as :

Size is 1330, 653
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (-2.527008000000000,49.110725129323306)
Pixel Size = (0.000686645112782,-0.000686645112782)
Metadata:
  TIFFTAG_XRESOLUTION=72
  TIFFTAG_YRESOLUTION=72
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  -2.5270080,  49.1107251) (  2d31'37.23"W, 49d 6'38.61"N)
Lower Left  (  -2.5270080,  48.6623459) (  2d31'37.23"W, 48d39'44.45"N)
Upper Right (  -1.6137700,  49.1107251) (  1d36'49.57"W, 49d 6'38.61"N)
Lower Right (  -1.6137700,  48.6623459) (  1d36'49.57"W, 48d39'44.45"N)
Center      (  -2.0703890,  48.8865355) (  2d 4'13.40"W, 48d53'11.53"N)

The same request issued to the mapproxy frontend :
/mapproxy/service?LAYERS=current_magnitude_ms,current_uv&FORMAT=image%2FGeoTIFF&TIME=2012-06-24T01&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A4326&BBOX=-2.527008%2C48.662346%2C-1.61377%2C49.110725&WIDTH=1330&HEIGHT=653
allows me to download a file which gdalinfo reports as :

Size is 1330, 653
Coordinate System is `'
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,  653.0)
Upper Right ( 1330.0,    0.0)
Lower Right ( 1330.0,  653.0)
Center      (  665.0,  326.5)

My sources configuration is as such :
sources:
  mapserver:
    type: mapserver
    forward_req_params: ['time']
    req:
      map: /path/to/websig.map
      transparent: true
      format: image/tiff

Am I missing something, or does MapProxy removes the CRS and
positioning information from the GeoTiff ?

Thanks,
F.
-- 
Camptocamp France SAS, Chambéry
http://www.camptocamp.com/fr/geospatial-solutions


More information about the MapProxy mailing list