Hi Paul,<br>my values are stored in integer fields, but I calculate the value I use in a Postgres query with a user defined function that returns a string; Now I have also tried making a cast to integer in the Query but I keep on getting this Error:<br>
<b>Warning</b>:  [MapServer Error]: getInteger(): Parsing error near ([):(line 539)
 in <b>..../chameleon-2.4/htdocs/common/wrapper/map_session.php</b> on line <b>215 <br></b>if I use the expression SIZE [sizeobj1] and <br><b>Warning</b>:  [MapServer Error]: getInteger(): Parsing error near ([sizeobj1]):(line 539)
 in <b>..../chameleon-2.4/htdocs/common/wrapper/map_session.php</b> on line <b>215 </b><br>if I use the expression SIZE &quot;[sizeobj1]&quot;.... I use Chameleon, is there any problem?<br>(my configuration is Mapserver 4.10 with Chameleon 2.4 on Linux Ubuntu 6.10)<br>
<br>Bye Federica<br><br><br><div class="gmail_quote">2008/6/27 Paul Spencer &lt;<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Are the values in your data stored as integer fields?<br>
<br>
The [field_name] syntax should substitute the attribute value for each feature as it is drawn, so it won&#39;t work with SIZEITEM, only with SIZE.<br>
<br>
No other ideas at this time.<br>
<br>
Cheers<br><font color="#888888">
<br>
Paul</font><div><div></div><div class="Wj3C7c"><br>
<br>
On 27-Jun-08, at 9:29 AM, Federica De Martin wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you for the answer!<br>
I tried to user SIZE [field_name] and SIZE &quot;[field_name]&quot; but in both cases I get [Mapserver Error]: getInteger(). Then I tried also SIZEITEM [field_name] and SIZEITEM &quot;[field_name]&quot; that don&#39;t work and SIZEITEM field_name that makes me get the same result as SIZEITEM &quot;field_name&quot;....<br>

<br>
Any other idea or workaround?<br>
Federica<br>
<br>
<br>
2008/6/27 Paul Spencer &lt;<a href="mailto:pspencer@dmsolutions.ca" target="_blank">pspencer@dmsolutions.ca</a>&gt;:<br>
Try the following:<br>
<br>
<br>
CLASS<br>
 &nbsp; NAME &quot;calss1&quot;<br>
 &nbsp; STYLE # first style<br>
 &nbsp; &nbsp; &nbsp; SYMBOL &quot;cartoline_square&quot;<br>
 &nbsp; &nbsp; &nbsp; SIZE [sizeobj2]<br>
<br>
 &nbsp; &nbsp; &nbsp; COLOR &nbsp; &nbsp;0 0 0 #black<br>
 &nbsp; END<br>
 &nbsp; STYLE # second style<br>
 &nbsp; &nbsp; &nbsp; SYMBOL &quot;cartoline_square&quot;<br>
 &nbsp; &nbsp; &nbsp; SIZE [sizeobj1]<br>
<br>
 &nbsp; &nbsp; &nbsp; COLOR &nbsp; &nbsp;255 255 255 #white<br>
 &nbsp; END<br>
END<br>
<br>
Cheers<br>
<br>
Paul<br>
<br>
<br>
On 27-Jun-08, at 6:32 AM, Federica De Martin wrote:<br>
<br>
Hi everybody,<br>
I&#39;m trying to use the SIZEITEM to render a line LAYER. My problem is that when I use the SIZEITEM mapserver follows it only for the first style; this is my class:<br>
<br>
 &nbsp; CLASS<br>
 &nbsp; &nbsp; &nbsp; NAME &quot;calss1&quot;<br>
 &nbsp; &nbsp; &nbsp; STYLE # first style<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SYMBOL &quot;cartoline_square&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZEITEM &quot;sizeobj2&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLOR &nbsp; &nbsp;0 0 0 #black<br>
 &nbsp; &nbsp; &nbsp; END<br>
 &nbsp; &nbsp; &nbsp; STYLE # second style<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SYMBOL &quot;cartoline_square&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZEITEM &quot;sizeobj1&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLOR &nbsp; &nbsp;255 255 255 #white<br>
 &nbsp; &nbsp; &nbsp; END<br>
 &nbsp; END<br>
<br>
The values are: sizeobj2=sizeobj1+2; What I get is that the black lines are of different sizes and the white lines (over the first) always keep the same size (the smaller).<br>
The symbol &quot;cartoline_square&quot; is a symbol of type cartoline, but I also tried with other symbols and I get the same result.<br>
Is there any bug or have I made something wrong in my class?<br>
<br>
I wait for some help, Thanks.<br>
Bye, Federca.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
<br>
__________________________________________<br>
<br>
 &nbsp;Paul Spencer<br>
 &nbsp;Chief Technology Officer<br>
 &nbsp;DM Solutions Group Inc<br>
 &nbsp;<a href="http://www.dmsolutions.ca/" target="_blank">http://www.dmsolutions.ca/</a><br>
<br>
</blockquote>
<br>
<br>
__________________________________________<br>
<br>
 &nbsp; Paul Spencer<br>
 &nbsp; Chief Technology Officer<br>
 &nbsp; DM Solutions Group Inc<br>
 &nbsp; <a href="http://www.dmsolutions.ca/" target="_blank">http://www.dmsolutions.ca/</a><br>
<br>
</div></div></blockquote></div><br>