Changing a layer's DATA via the URL in MapServer 5.0

Steve Lime Steve.Lime at DNR.STATE.MN.US
Tue Nov 20 00:55:21 EST 2007


Note that I believe you also need to set DATAPATTERN to a regex to restrict what values DATA can take. This isn't new but is required.

Steve

>>> Yewondwossen Assefa <yassefa at DMSOLUTIONS.CA> 11/19/07 8:57 AM >>>
Jan,

   You could try something like 
...&map.layer[plan]=data+amby/verzamelplan.tif

This seem to work.

Best Regards,

Jan Hartmann wrote:
> Hi,
> 
> I'm having trouble with changing a layer's  DATA  in MapServer 5.0 via 
> the URL. In 4.10.0 the following works:
> 
> datapattern ".*"
> /cgi-bin/mapserv?map=...map&mapext=...&mapsize=...mode=map&map_layer_0_data=amby/verzamelplan.tif
> 
> In 5.0 the same call causes the following error:
> 
> getSymbol(): Symbol definition error. Parsing error near (0):(line 1)
> 
> Changing the DATA part to: map_layer[0]_data, or map.layer[plan].data, 
> as described in the Migration Guide gives:
> 
> loadLayer(): Unknown identifier. Parsing error near 
> (amby/verzamelplan.tif):(line 1)
> 
> 
> Is this a bug, or am I doing something wrong?
> 
> Jan


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



More information about the mapserver-users mailing list