Re: [Geotools-gt2-users] writing styles on the fly ... found fix

2007-08-22 Thread Gabriella Turek
Well, I've messed around with all sorts of code and all of a sudden it works. The obvious change that I made is to use a StyleBuilder instead of a StyleFactory, AND to use FilterFactory.createAttributeExpression(String attributeTypeName) Perhaps I don't quite understand the diference between Style

Re: [Geotools-gt2-users] writing styles on the fly ... found a bug

2007-08-22 Thread Gabriella Turek
After some investigation to make sure that I was not the cause of the problem I found that the expression FilterFactory.createAttributeExpression(AttributeType) returns null! Now, I know this is to be deprecated, but I can't see any obvious alternative if one's using 2.3.* Any ideas? gaby -- *

Re: [Geotools-gt2-users] writing styles on the fly ...

2007-08-22 Thread Gabriella Turek
Jody Garnett wrote: > I did not see anything strange in your xml example. > > Can you step through with the debugger and confirm the object is being > created as you intended? > I am worried about this line: >> cf.addLeftValue(ff.createAttributeExpression(at)); //at is >> AttributeType in quest

Re: [Geotools-gt2-users] writing styles on the fly ...

2007-08-22 Thread Jody Garnett
I did not see anything strange in your xml example. Can you step through with the debugger and confirm the object is being created as you intended? I am worried about this line: > cf.addLeftValue(ff.createAttributeExpression(at)); //at is AttributeType in > question > Not based on anything y

[Geotools-gt2-users] writing styles on the fly ...

2007-08-21 Thread Gabriella Turek
I'm implementing a style editor for my application and I am a bit stuck. As an example I would like to be able to implement the equivalent of the following rule: metalled ROAD_SURFA metalled