Tim Englich wrote:
> Hello,
>
> I have got problems with parsing the following Filter in GeoTools 2.3.1
>
> <Filter>
> <PropertyIsEqualTo>
>
> <PropertyName>Flurstueckskennzeichen</PropertyName>
> <Literal>1201011010004500000</Literal>
> </PropertyIsEqualTo>
> </Filter>
>
>
> First of all the attribute I apply the Filter on is an String attribute. The
> value I got in the Filter-Object after parsing the XML is an double value.
> When I convert the value back to String with the following code
>
> Double d = (Double)value;
> DecimalFormat f = new
> DecimalFormat("0.############################################################
> ######");
> valueString =f.format(d);
>
> I got back the value 1201011010004499970.
>
> Has anyone an Idea how to solve this Problem?
>
I am afraid that 2.3 does not take the attribute type into account when
parsing,
upgrading to 2.4 will fix the problem (it leaves everything as a String
and the PropertyIsEqualsTo implementation
will convert the values to the same type for comparison).
It is exactly this kind of problem that motivated this work in GeoTools 2.4.
Jody
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users