Gertjan van Oosten ha scritto:
> Hi Andrea,
> 
> As quoted from Andrea Aime <[EMAIL PROTECTED]>:
>> I think you should look in the GML encoder, the FeatureTransformer class
>> in particular.
> 
> I will have a looksee.
> 
>>>> and then use DateUtils to encode
>>>> the date with the appropriate type, and you should get exactly the
>>>> same behaviour as GeoServer.
>>> We-ellll...  GeoServer (at least the 1.5.1 I'm running) still uses
>>> the class TemporalAttributeType that does:
>>>
>>>     // this might be right, maybe not, but anyway, its a default formatting
>>>     static java.text.DateFormat format = java.text.DateFormat.getInstance();
>> Hmm... no, this date format is used only as a last resort parser if
>> you try to initialize an attribute with a string, but I don't see it 
>> used for encoding?
> 
> That's right: when you *send* a *new* feature to GeoServer that has a
> dateTime element, it must be in the Locale-specific format.
> If you *update* an *existing* feature, the dateTime must be in ISO 8601
> format.  Which means that if the GeoTools library is fixed to always
> send ISO 8601 format, it will still fail, but this time on the GeoServer
> side of things (see attached exception from my logs).
> 
>> I just queried Geoserver 1.5.x snapshot over a dataset that has date, 
> 
> Querying is no problem, as is updating existing features.  It is new
> features where things fail on the GeoServer side.

Ah, sorry for misunderstanding you. Yes, things are fixed only on the 
read side, write side is most probably still broken. Are you sure there 
is a jira issue? Can't find it. If neither you can find it, can you open 
a new one and schedule it for Geoserver 1.5.2?

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to