Hi all,
We found another problem using SLDTransformer.transform(...) (we are using geotools 2.1M2):
Just like in my previous post, we transform some style into XML like this:
[1] String sld = new SLDTransformer().transform(new Style[] { layer.getStyle() });
and we load it back like this:
[2] InputStream is = new ByteArrayInputStream(sld.getBytes());
[3] Style[] styles = new SLDParser(StyleFactory.createStyleFactory(), is).readXML();
Before the transformation (line 1), the style has a filer that filters some feature by a String value, like this:
layer.style.featureList[1].ruleList[0].filer.toString() == "ASSESSORSI = 372315212003"
(this filer is a CompareFilterImpl - both left and right value are String).
After the transformation (line 3), the style now has a fileter that filters features by a Double value, like this:
style[0].featureList[1].ruleList[0].filter.toString() == "[ ASSESSORSI = 3.72315212003E11 ]"
(now the left side is a String while the right side is a Double).
Can anybody tell me if this is already fixed in a newer version of Geotool? Or maybe can anybody tell me some workaround or something :).
Thank you all,
Trung
We found another problem using SLDTransformer.transform(...) (we are using geotools 2.1M2):
Just like in my previous post, we transform some style into XML like this:
[1] String sld = new SLDTransformer().transform(new Style[] { layer.getStyle() });
and we load it back like this:
[2] InputStream is = new ByteArrayInputStream(sld.getBytes());
[3] Style[] styles = new SLDParser(StyleFactory.createStyleFactory(), is).readXML();
Before the transformation (line 1), the style has a filer that filters some feature by a String value, like this:
layer.style.featureList[1].ruleList[0].filer.toString() == "ASSESSORSI = 372315212003"
(this filer is a CompareFilterImpl - both left and right value are String).
After the transformation (line 3), the style now has a fileter that filters features by a Double value, like this:
style[0].featureList[1].ruleList[0].filter.toString() == "[ ASSESSORSI = 3.72315212003E11 ]"
(now the left side is a String while the right side is a Double).
Can anybody tell me if this is already fixed in a newer version of Geotool? Or maybe can anybody tell me some workaround or something :).
Thank you all,
Trung
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
