Hi Tim; It took me a few trys before I was able to apply the patch using 
eclipse ... did you create this diff using svn or something?

Do you have a test case showing that this patch does in fact fix your 
problem?
Jody


Tim Englich wrote:
> Hello Jody,
>
> I create a little Patch which solve my Problems and also keep the "old"
> functionality alive.
> Perhaps it is possible that you integrate it to the 2.3.x Branch.
>
> Tim
>
> -----Ursprüngliche Nachricht-----
> Von: Jody Garnett [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 26. Juli 2007 09:01
> An: Tim Englich
> Cc: [email protected]
> Betreff: Re: [Geotools-gt2-users] NumberValue Problems Using
> FilterFilter and GMLFilterDocument
>
>
> 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

Reply via email to