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

Jan Hartmann J.L.H.Hartmann at UVA.NL
Tue Nov 20 04:45:13 EST 2007


 
Yes, that did it, thanks Assefa, Steve. It actually said so in the CGI Reference Guide, with an example of the different calls for MapServer 4 and 5, so next time I'm going to read the manual completely to the end :-) 
 
Jan

________________________________

From: UMN MapServer Users List on behalf of Steve Lime
Sent: Tue 11/20/2007 6:55 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Changing a layer's DATA via the URL in MapServer 5.0



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
----------------------------------------------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20071120/d48c6bcc/attachment.html


More information about the mapserver-users mailing list