In general the methods marked as deprecated as "setters". In GeoTools 2.6 we
are experimenting with making the styles immutable (after you create them
you cannot change them). This makes things easier when we are writing a fast
renderer; if the style is not changing as we are drawing with it!
I am not sure there is a good solution here; the best way would be to define
all the parameters as you create the style; but I am not sure the geotools
StyleFactory create methods are complete in this respect.

Jody

On Tue, Feb 17, 2009 at 1:38 AM, Benoît Thiébault <[email protected]>wrote:

> Hi everyone,
>
> I'm using geotools 2.5 and I try to set styles programmatically, from
> examples provided on the geotools tutorials (like here
> http://docs.codehaus.org/display/GEOTDOC/05+Style
>  or there http://docs.codehaus.org/display/GEOTDOC/09+ShapeLab)
>
> In both cases, a lot of methods seem to be deprecated and "will be
> replaced by live lists in 2.6.x". As Geotools 2.6 is not stable yet,
> what is the best solution to define styles without depending on these
> deprecated methods ?
>
> Any example of code would be greatly appreciated
>
> Benoît
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to