Here.... ruby chokes on the EXPRESSION. (For example, EXPRESSION (25&gt;0) works.)<br><br>MAP<br>&nbsp; NAME &quot;Election Results&quot;<br>&nbsp; STATUS ON<br>&nbsp; EXTENT -2450520 -1730156 2332934 1953725 <br>&nbsp; SIZE 600 450 <br>&nbsp; SHAPEPATH &quot;./data&quot;
<br>&nbsp; SYMBOLSET &quot;./etc/symbols.sym&quot;<br>&nbsp; FONTSET &quot;./etc/fonts.txt&quot;<br>&nbsp; IMAGETYPE PNG<br>&nbsp; IMAGECOLOR 255 255 255<br>&nbsp; UNITS METERS<br>&nbsp; #<br>&nbsp; # Start of OutputFormat object<br>&nbsp; #<br>&nbsp; OUTPUTFORMAT<br>
&nbsp;&nbsp;&nbsp; NAME &quot;png&quot;<br>&nbsp;&nbsp;&nbsp; MIMETYPE &quot;image/png&quot;<br>&nbsp;&nbsp;&nbsp; DRIVER &quot;GD/PNG&quot;<br>&nbsp;&nbsp;&nbsp; EXTENSION &quot;png&quot;<br>&nbsp;&nbsp;&nbsp; IMAGEMODE PC256<br>&nbsp;&nbsp;&nbsp; TRANSPARENT FALSE<br>&nbsp; END<br>#<br># Start of layer definitions
<br>#<br>&nbsp; LAYER<br>&nbsp;&nbsp;&nbsp; NAME &quot;House of Representatives&quot;<br>&nbsp;&nbsp;&nbsp; GROUP &quot;House of Representatives&quot;<br>&nbsp;&nbsp;&nbsp; STATUS ON<br>&nbsp;&nbsp;&nbsp; DATA &quot;the_geom FROM (SELECT state, seatnumber, gid, the_geom,<br>&nbsp; round(cast(dempct*100 as numeric),2) as dempct
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from cds<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ) a using unique gid using srid=-1&quot;<br>&nbsp;&nbsp;&nbsp; TYPE POLYGON<br>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE POSTGIS<br>&nbsp;&nbsp;&nbsp; CONNECTION &quot;user=user dbname=cd host=host&quot;<br>&nbsp;&nbsp;&nbsp; UNITS METERS
<br>&nbsp;&nbsp;&nbsp; LABELITEM &quot;seatnumber&quot;<br>&nbsp;&nbsp;&nbsp; LABELMAXSCALE 4000000<br>&nbsp;&nbsp;&nbsp; TEMPLATE &quot;newtemplate.html&quot;<br>&nbsp;&nbsp;&nbsp; CLASSITEM &quot;dempct&quot;<br>&nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME &quot;Democrat&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION ([dempct] &gt; 25)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 11<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 255<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 7<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp; END<br>END<br><br><br><br><div><span class="gmail_quote">On 11/17/06, <b class="gmail_sendername">Steve Lime</b> &lt;<a href="mailto:Steve.Lime@dnr.state.mn.us">Steve.Lime@dnr.state.mn.us
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The mapfile would help...<br><br>&gt;&gt;&gt; The Cunctator &lt;<a href="mailto:cunctator@GMAIL.COM">
cunctator@GMAIL.COM</a>&gt; 11/17/2006 1:09:48 PM &gt;&gt;&gt;<br>I'm happy to give settings/sample files etc but maybe someone has some<br>idea<br>what my problem is -- I'm guessing it has to do with the installation.<br>
<br>The following script:<br><br>#!/usr/bin/env ruby<br><br>require &quot;mapscript&quot;<br>include Mapscript<br><br>map=MapObj.new(&quot;test.map&quot;)<br>image = map.draw<br>image.save('test.png')<br><br>fails:<br><br>
in `draw': msEvalExpresssion: Expression parser error. Failed to parse<br>expression;msyyparse(): Expression parser error. syntax<br>error;msEvalExpression: Expression parser error. Failed to parse<br>expression;msyyparse():
<br>...<br><br>etc.<br><br>whereas the php script<br><br>&lt;?php<br>if(!extension_loaded(&quot;MapScript&quot;)) {<br>&nbsp;&nbsp; dl('php_mapscript.'.PHP_SHLIB_SUFFIX);<br>}<br><br>$map = ms_newMapObj(&quot;test.map&quot;);<br><br>
$image = $map-&gt;draw();<br>$image-&gt;saveImage('test.png');<br><br>?&gt;<br><br>works fine.<br><br>map.drawLegend<br>and<br>map.drawScalebar<br>work fine.<br><br>Anyone have thoughts or what information would people need to
<br>diagnose?<br></blockquote></div><br>