<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>&nbsp;</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>&nbsp;</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>&gt;&gt;&gt; Yewondwossen Assefa &lt;yassefa@DMSOLUTIONS.CA&gt; 11/19/07 8:57 AM &gt;&gt;&gt;<BR>Jan,<BR><BR>&nbsp;&nbsp; You could try something like<BR>...&amp;map.layer[plan]=data+amby/verzamelplan.tif<BR><BR>This seem to work.<BR><BR>Best Regards,<BR><BR>Jan Hartmann wrote:<BR>&gt; Hi,<BR>&gt;<BR>&gt; I'm having trouble with changing a layer's&nbsp; DATA&nbsp; in MapServer 5.0 via<BR>&gt; the URL. In 4.10.0 the following works:<BR>&gt;<BR>&gt; datapattern ".*"<BR>&gt; /cgi-bin/mapserv?map=...map&amp;mapext=...&amp;mapsize=...mode=map&amp;map_layer_0_data=amby/verzamelplan.tif<BR>&gt;<BR>&gt; In 5.0 the same call causes the following error:<BR>&gt;<BR>&gt; getSymbol(): Symbol definition error. Parsing error near (0):(line 1)<BR>&gt;<BR>&gt; Changing the DATA part to: map_layer[0]_data, or map.layer[plan].data,<BR>&gt; as described in the Migration Guide gives:<BR>&gt;<BR>&gt; loadLayer(): Unknown identifier. Parsing error near<BR>&gt; (amby/verzamelplan.tif):(line 1)<BR>&gt;<BR>&gt;<BR>&gt; Is this a bug, or am I doing something wrong?<BR>&gt;<BR>&gt; 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:&nbsp;&nbsp; (613) 565-0925<BR>----------------------------------------------------------------<BR></FONT></P></DIV></BODY></HTML>