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

Federica De Martin federica.demartin at gmail.com
Fri Jun 27 06:29:26 PDT 2008


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/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080627/1aa34876/attachment.htm>


More information about the MapServer-users mailing list