On 7/18/07, Stefan Krüger <[EMAIL PROTECTED]> wrote:
> Hi everybody
>
> Lhe last mail concerning Legends on this list, told us that they are not
> supported by geotools2 any more. And that looking at uDig could be a way.
>
> I use SLD-imported Styles.
> I am writing a JTree that shall serve as a LegendPanel.
> I have a JTreeModel that fills the JTree with the the mapContext's layers and
> their rules... no problem so far.
>
> But i have no clue of how to get a little graphic that represents the
> Rasterizer. The Rule object can be asked for getSymbolizers, but then?
>

I'm not sure any of our renderers honor the SLD for rasters yet so I
wouldn't worry.
>
> As a last solution:
> I thought about saving tree small shapefiles with one point, one line and one
> polygon and then have lots of MapPanes display them inside the JTree with the
> corresponding style of the rule.. but it somehow doesn't appear so smart to
> me.

You could grab a renderer and draw lots of little images and cache
them. They aren't going to change very often. The problem is if any of
your styles are scale dependant they may not show up in a little
picture the way they do in a map.

>
> So... can it be that nobody is using a legend with geotools?

I think you are discovering why none of us bother with them :-)



-- 

Ian Turton
http://www.geotools.org
http://pennspace.blogspot.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to