[MapProxy] GeoTiff support

François Van Der Biest francois.vanderbiest at camptocamp.com
Wed Aug 1 07:38:54 PDT 2012


Hi Oliver,

Thanks for your response.

On Wed, Jul 25, 2012 at 5:04 PM, Oliver Tonnhofer <olt at omniscale.de> wrote:
>
> On 24.07.2012, at 17:29, François Van Der Biest wrote:
>> Am I missing something, or does MapProxy removes the CRS and
>> positioning information from the GeoTiff ?
>
> Only if it needs to process the image, e.g. if it needs to merge two layers.

It does not perform better with just one layer :
/mapproxy/service?LAYERS=current_magnitude_ms still returns a tiff
file, not a geotiff.

>> /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
>
> Are these layers coming from the same source? If yes, then they should be merged to a single source request. I need have your complete configuration to see if it is a bug or not.

Both layers come from the same "oo" source, yes, see config below.
I don't understand what you mean by "they should be merged to a single
source request" : could you elaborate ?

Many thanks,

François.


services:
  demo:
  kml:
  tms:
  wms:
    srs: ['EPSG:4326', 'EPSG:900913']
    image_formats: ['image/jpeg', 'image/png', 'image/tiff']

layers:
  - name: current_power
    title: current_power
    sources: ['oo:current_power']
  - name: current_magnitude_knots
    title: current_magnitude_knots
    sources: ['oo:current_magnitude_knots']
  - name: current_magnitude_ms
    title: current_magnitude_ms
    sources: ['oo:current_magnitude_ms']
  - name: wave_CgE
    title: wave_CgE
    sources: ['oo:wave_CgE']
  - name: wave_t
    title: wave_t
    sources: ['oo:wave_t']
  - name: wave_hs
    title: wave_hs
    sources: ['oo:wave_hs']
  - name: current_uv
    title: current_uv
    sources: ['oo:current_uv']
  - name: wind_uv
    title: wind_uv
    sources: ['oo:wind_uv']
  - name: wave_uv
    title: wave_uv
    sources: ['oo:wave_uv']


sources:
  oo:
    type: mapserver
    forward_req_params: ['time']
    req:
      map: websig.map
      transparent: true
    mapserver:
      binary: /usr/lib/cgi-bin/mapserv

grids:
  global_mercator_osm:
    base: GLOBAL_MERCATOR
    origin: nw
    num_levels: 18

globals:
  cache:
    base_dir: '../cache_data'
    lock_dir: '../cache_data/locks'

  image:
    resampling_method: bicubic


More information about the MapProxy mailing list