2009/2/17 Benoît Thiébault wrote:
> From what I see in the code you wrote, you don't use rules. How would you do
> to process a FeatureType differently depending on a feature attribute ?

I haven't worked out to use rules programmatically without using
deprecated methods.  Actually, if you look at the source for
StyleBuilder and StyleFactory they have the same problem !  I believe
styling is in a state of flux but I'm afraid that I don't follow all
the details...

I have been looking at the source for DynamicPolygonStyle2D class that
is used in the geotools rendering system. It uses Expressions to get
colour codes (in notation like #808080) for fill, outline...  It
passes each feature in turn to the Expression object to be evaluated.
This seems ideal and is so simple that even I can understand it :-)
But what I need to work out (or be told by some kind soul... hint...)
is how to link to this at the client code level.

Michael

------------------------------------------------------------------------------
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
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to