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 "[sizeobj1]".... 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 <<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a>>:<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'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 "[field_name]" but in both cases I get [Mapserver Error]: getInteger(). Then I tried also SIZEITEM [field_name] and SIZEITEM "[field_name]" that don't work and SIZEITEM field_name that makes me get the same result as SIZEITEM "field_name"....<br>
<br>
Any other idea or workaround?<br>
Federica<br>
<br>
<br>
2008/6/27 Paul Spencer <<a href="mailto:pspencer@dmsolutions.ca" target="_blank">pspencer@dmsolutions.ca</a>>:<br>
Try the following:<br>
<br>
<br>
CLASS<br>
NAME "calss1"<br>
STYLE # first style<br>
SYMBOL "cartoline_square"<br>
SIZE [sizeobj2]<br>
<br>
COLOR 0 0 0 #black<br>
END<br>
STYLE # second style<br>
SYMBOL "cartoline_square"<br>
SIZE [sizeobj1]<br>
<br>
COLOR 255 255 255 #white<br>
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'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>
CLASS<br>
NAME "calss1"<br>
STYLE # first style<br>
SYMBOL "cartoline_square"<br>
SIZEITEM "sizeobj2"<br>
COLOR 0 0 0 #black<br>
END<br>
STYLE # second style<br>
SYMBOL "cartoline_square"<br>
SIZEITEM "sizeobj1"<br>
COLOR 255 255 255 #white<br>
END<br>
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 "cartoline_square" 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>
Paul Spencer<br>
Chief Technology Officer<br>
DM Solutions Group Inc<br>
<a href="http://www.dmsolutions.ca/" target="_blank">http://www.dmsolutions.ca/</a><br>
<br>
</blockquote>
<br>
<br>
__________________________________________<br>
<br>
Paul Spencer<br>
Chief Technology Officer<br>
DM Solutions Group Inc<br>
<a href="http://www.dmsolutions.ca/" target="_blank">http://www.dmsolutions.ca/</a><br>
<br>
</div></div></blockquote></div><br>