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

Steve Lime Steve.Lime at dnr.state.mn.us
Thu Feb 5 09:56:41 EST 2009


You have to set a DATAPATTERN in the webObj (I think) so that someone just can't
change that value to anything. For example you might consider:

  DATAPATTERN "^IMG_[0-9]{5}\.tif$"

The value for DATAPATTERN is a regex.

Steve

>>> Dirk Jesko <ml.dje at geocontent.de> 02/05/09 8:48 AM >>>
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

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list