Jody Garnett ha scritto:
What a complicated problem!  Thanks for the summary of options.

As you have noted we need to make a Converter out of this functionality - so that both read/write in the XML parsers and the filter/expression implementations benifit.

I just spotted another place that would benefit, the property data store. The attached property file has some time related attributes,
and the property data store is not loading correctly the one defined
as a java.sql.TimeStamp, which is to be bound to an xs:datetime
element in xml.

At the moment the attribute in f008 just gets turned into a null
because no converter is able to parse it into a java.sql.TimeStamp.
Oh, you may ask, why TimeStamp? Because it's the only class in Java
carrying the precise indication that we both want the date and time
parts. Anyways, specifying the attribute as java.util.Date does not
change matters, no one of the available converters is able to understand the xs:timestamp format.

Cheers
Andrea

_=description:String,name:String,surfaceProperty:Polygon:srid=4326,pointProperty:Point:srid=4326,curveProperty:LineString:srid=4326,intProperty:Integer,uriProperty:java.net.URI,measurand:String,dateTimeProperty:java.util.Date,dateProperty:java.sql.Date,decimalProperty:Double
PrimitiveGeoFeature.f001=description-f001|name-f001|<null>|POINT(39.73245 
2.00342)|<null>|155|http://www.opengeospatial.org/|12765|<null>|2006-10-25|5.03
PrimitiveGeoFeature.f002=description-f002|name-f002|<null>|POINT(59.41276 
0.22601)|<null>|154|http://www.opengeospatial.org/|12769|<null>|2006-10-23|4.02
PrimitiveGeoFeature.f003=description-f003|name-f003|<null>|<null>|LINESTRING(46.074
 9.799,46.652 10.466,47.114 11.021)|180|<null>|672.1|<null>|2006-09-01|12.92
PrimitiveGeoFeature.f008=description-f008|name-f008|POLYGON((45.174 
30.899,45.652 30.466,45.891 30.466,45.174 
30.899))|<null>|<null>|300|<null>|783.5|2006-06-27 22:08:00-07|2006-12-12|18.92
PrimitiveGeoFeature.f015=<null>|<null>|<null>|POINT(34.94 
-10.52)|<null>|-900|<null>|2.4|<null>|<null>|7.9
-------------------------------------------------------------------------
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