Usually you use a series of filters on a single layer to break the
attribute being mapped in to groups which share a colour. See
http://blog.ianturton.com/geotools/mapping/cartography/sld/2015/07/04/Styling-Shapefiles.markdown.html
for example code.

Ian
On 13 Jul 2016 17:59, "Julian Hagenauer" <[email protected]> wrote:

> Hi,
>
> what is the best way to draw chloropleth maps in geotools?
> I can think of two possibilities:
> a) add some color-attribute to the features and set the style to use this
> attribute for coloring the map. The disadvantage of this approach is that I
> need to modify the schema.
>
> b) add a new layer for each attribute to the map. Each layer has ist own
> color. The disadvantage of this approach is that, depending on the number
> of color-classes, this might result in a lot of layers.
>
> Which approach is better/should be followed?
>
> Thanks
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports.http://sdm.link/zohodev2dev
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to