[mapserver-users] Mapserver - classifying multiple symbol sizes with multiple colours [SEC=UNCLASSIFIED]

Stephen Woodbridge woodbri at swoodbridge.com
Wed Nov 9 17:19:32 PST 2016


STYLE
    SYMBOL 'xyz'
    SIZE [size]
    COLOR [colour]
END

where [colour] is a string "#rrggbb"

-Steve W

On 11/9/2016 6:35 PM, Inna Nogeste wrote:
> I need to symbolise data showing both size and colour, where there are 4 different symbol sizes and 11 different colours. The 11 colours can be applied to all 4 different symbol sizes.
> Is there an efficient way to code this or do I need to have 44 different styles/expressions such as the following:
>
> EXPRESSION ([size] = 1 and [colour] = 0%)
> EXPRESSION ([size] = 1 and [colour] = 10%)
> EXPRESSION ([size] = 1 and [colour] = 20%)
> EXPRESSION ([size] = 1 and [colour] = 30%)
> to
> EXPRESSION ([size] = 4 and [colour] = 100%)
>
> In addition to this, I also need to scale the symbol [size] for different zoom levels which will increase the number of styles/expressions by a factor of at least 2 or 3 resulting in at least 88 blocks of code.
>
> Does anyone have any suggestions for the most/a efficient way to code this?
>
> Regards,
> Inna Nogeste | Spatial Information Specialist
> Geospatial Data and Services
> Information Systems and Services Division
> Bureau of Meteorology
> www.bom.gov.au
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



More information about the mapserver-users mailing list