<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Setting expression through URL with MS 5</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hello,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I'm trying to migrate a MapServer 4 app to MapServer 5, which means dealing with the changes in URL syntax for the on-the-fly mapfile changes.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">One thing I did was set an expression from the URL.&nbsp; Now I can't seem to get it to work :(</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">A URL fragment like this:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&amp;map.layer[layername].class[0]=EXPRESSION%20something</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Gives me:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">loadClass(): Unknown identifier. Parsing error near (EXPRESSION):(line 1)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">The layername definitely exists, and the class is already declared (with a &quot;fake&quot; expression as a place holder).</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I've tried removing the placeholder expression and also tried using:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&amp;map.layer[0]=DATA shapefile CLASS EXPRESSION something END</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">(properly url encoded, as you can see I also set the DATA on the fly)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">And then I get a parsing error on CLASS!</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Help, what am I missing?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Jean-François Doyon</FONT>

<BR><FONT SIZE=2 FACE="Arial">Applications Development Solutions | Solutions de développement d'applications</FONT>

<BR><FONT SIZE=2 FACE="Arial">IT Support Services | Services de support TI</FONT>

<BR><FONT SIZE=2 FACE="Arial">Information Technology Services | Services de la technologie d'information</FONT>

<BR><FONT SIZE=2 FACE="Arial">Shared Services Office | Bureau des services partagés</FONT>

<BR><FONT SIZE=2 FACE="Arial">Corporate Management and Services Sector | Secteur de la gestion et des services intégrés</FONT>

<BR><FONT SIZE=2 FACE="Arial">Natural Resources Canada | Ressources naturelles Canada</FONT>

<BR><FONT SIZE=2 FACE="Arial">Ottawa, Canada K1A 0E9</FONT>

<BR><FONT SIZE=2 FACE="Arial">jdoyon@nrcan-rncan.gc.ca</FONT>

<BR><FONT SIZE=2 FACE="Arial">Telephone | Téléphone 613-992-4902</FONT>

<BR><FONT SIZE=2 FACE="Arial">Facsimile | Télécopieur </FONT><FONT COLOR="#000000" SIZE=2 FACE="Arial">613-995-3252</FONT>

<BR><FONT SIZE=2 FACE="Arial">Teletypewriter | Téléimprimeur 613-996-4397</FONT>

<BR><FONT SIZE=2 FACE="Arial">Government of Canada | Gouvernement du Canada</FONT>
</P>

</BODY>
</HTML>