[mapserver-users] How to change a layer's DATA attribute via URL?

Dirk Jesko ml.dje at geocontent.de
Thu Feb 5 06:35:02 PST 2009


Hello,

I would like to change the DATA attribute of a layer via URL. Mapserver 
is called using the cgi interface. The layer definition is

  LAYER
    NAME "luftbild"
    DATA "IMG_01646.tif"
    TYPE RASTER
    TRANSFORM UL
    PROCESSING "RESAMPLE=BILINEAR"
  END

Now I would like to select the image that shall be displayed using the 
URL, e.g.

... &MAPEXT=0 500 500 1000&mapsize=256 
256&map.layer[luftbild]=DATA+"IMG_01648.tif"

However, this just results in the following error message:

loadLayer(): General error message. URL-based DATA configuration failed 
pattern validation.

Any idea?

Thanks for any help,
Dirk




More information about the MapServer-users mailing list