[mapserver-users] 2 STYLE with 2 different SIZEITEM... bug?

Paul Spencer pspencer at dmsolutions.ca
Fri Jun 27 08:35:29 PDT 2008


Oh - the attribute binding stuff using [fieldname] is only available  
in mapserver 5 I think.

Paul

On 27-Jun-08, at 10:58 AM, Federica De Martin wrote:

> Hi Paul,
> 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:
> Warning: [MapServer Error]: getInteger(): Parsing error near ([): 
> (line 539) in ..../chameleon-2.4/htdocs/common/wrapper/ 
> map_session.php on line 215
> if I use the expression SIZE [sizeobj1] and
> Warning: [MapServer Error]: getInteger(): Parsing error near  
> ([sizeobj1]):(line 539) in ..../chameleon-2.4/htdocs/common/wrapper/ 
> map_session.php on line 215
> if I use the expression SIZE "[sizeobj1]".... I use Chameleon, is  
> there any problem?
> (my configuration is Mapserver 4.10 with Chameleon 2.4 on Linux  
> Ubuntu 6.10)
>
> Bye Federica
>
>
> 2008/6/27 Paul Spencer <pspencer at dmsolutions.ca>:
> Are the values in your data stored as integer fields?
>
> 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.
>
> No other ideas at this time.
>
> Cheers
>
> Paul
>
>
> On 27-Jun-08, at 9:29 AM, Federica De Martin wrote:
>
> Thank you for the answer!
> 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"....
>
> Any other idea or workaround?
> Federica
>
>
> 2008/6/27 Paul Spencer <pspencer at dmsolutions.ca>:
> Try the following:
>
>
> CLASS
>   NAME "calss1"
>   STYLE # first style
>       SYMBOL "cartoline_square"
>       SIZE [sizeobj2]
>
>       COLOR    0 0 0 #black
>   END
>   STYLE # second style
>       SYMBOL "cartoline_square"
>       SIZE [sizeobj1]
>
>       COLOR    255 255 255 #white
>   END
> END
>
> Cheers
>
> Paul
>
>
> On 27-Jun-08, at 6:32 AM, Federica De Martin wrote:
>
> Hi everybody,
> 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:
>
>   CLASS
>       NAME "calss1"
>       STYLE # first style
>           SYMBOL "cartoline_square"
>           SIZEITEM "sizeobj2"
>           COLOR    0 0 0 #black
>       END
>       STYLE # second style
>           SYMBOL "cartoline_square"
>           SIZEITEM "sizeobj1"
>           COLOR    255 255 255 #white
>       END
>   END
>
> 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).
> The symbol "cartoline_square" is a symbol of type cartoline, but I  
> also tried with other symbols and I get the same result.
> Is there any bug or have I made something wrong in my class?
>
> I wait for some help, Thanks.
> Bye, Federca.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> __________________________________________
>
>  Paul Spencer
>  Chief Technology Officer
>  DM Solutions Group Inc
>  http://www.dmsolutions.ca/
>
>
>
> __________________________________________
>
>   Paul Spencer
>   Chief Technology Officer
>   DM Solutions Group Inc
>   http://www.dmsolutions.ca/
>
>


__________________________________________

    Paul Spencer
    Chief Technology Officer
    DM Solutions Group Inc
    http://www.dmsolutions.ca/




More information about the MapServer-users mailing list