<HTML dir=ltr><HEAD><TITLE>Re: [UMN_MAPSERVER-USERS] Changing a layer's DATA via the URL in MapServer 5.0</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText60984 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT> </DIV></DIV>
<DIV dir=ltr>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 :-) </DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Jan<BR></DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List on behalf of Steve Lime<BR><B>Sent:</B> Tue 11/20/2007 6:55 AM<BR><B>To:</B> MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> Re: [UMN_MAPSERVER-USERS] Changing a layer's DATA via the URL in MapServer 5.0<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>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.<BR><BR>Steve<BR><BR>>>> Yewondwossen Assefa <yassefa@DMSOLUTIONS.CA> 11/19/07 8:57 AM >>><BR>Jan,<BR><BR> You could try something like<BR>...&map.layer[plan]=data+amby/verzamelplan.tif<BR><BR>This seem to work.<BR><BR>Best Regards,<BR><BR>Jan Hartmann wrote:<BR>> Hi,<BR>><BR>> I'm having trouble with changing a layer's DATA in MapServer 5.0 via<BR>> the URL. In 4.10.0 the following works:<BR>><BR>> datapattern ".*"<BR>> /cgi-bin/mapserv?map=...map&mapext=...&mapsize=...mode=map&map_layer_0_data=amby/verzamelplan.tif<BR>><BR>> In 5.0 the same call causes the following error:<BR>><BR>> getSymbol(): Symbol definition error. Parsing error near (0):(line 1)<BR>><BR>> Changing the DATA part to: map_layer[0]_data, or map.layer[plan].data,<BR>> as described in the Migration Guide gives:<BR>><BR>> loadLayer(): Unknown identifier. Parsing error near<BR>> (amby/verzamelplan.tif):(line 1)<BR>><BR>><BR>> Is this a bug, or am I doing something wrong?<BR>><BR>> Jan<BR><BR><BR>--<BR>----------------------------------------------------------------<BR>Assefa Yewondwossen<BR>Software Analyst<BR><BR>Email: assefa@dmsolutions.ca<BR><A href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</A><BR><BR>Phone: (613) 565-5056 (ext 14)<BR>Fax: (613) 565-0925<BR>----------------------------------------------------------------<BR></FONT></P></DIV></BODY></HTML>