I regret not having a better answer for you. As Andrea stated this issue
is not of the highest priority right now so we will just have to get to
it as soon as we can.
i try to detail a bit more my problem :
i have a postgis database with test_geom table :
CREATE TABLE test_geom
(
id serial NOT NULL,
"type" varchar(4),
originating_center varchar(10),
issue_time timestamp,
the_geom geometry,
CONSTRAINT test_geom_pkey PRIMARY KEY (id),
CONSTRAINT enforce_dims_the_geom CHECK (ndims(the_geom) = 2),
CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) =
'POLYGON'::text OR the_geom IS NULL),
CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = 4326)
)
Notice the issue_time column which is timestamp type.
I made an WFS service on it. When i request DescribeFeatureType
http://localhost:8080/geoserver/wfs/DescribeFeatureType?typename=wims:test_geom
the issue_time has xsd:date as type....i need xs:dateTime...
<schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" xmlns:wims="http://www.flysafe-eu.org/wims" targetNamespace="http://www.flysafe-eu.org/wims">
<import namespace="http://www.opengis.net/gml" schemaLocation="http://localhost:8080/geoserver/schemas/gml/3.1.1/base/feature.xsd"/>
<complextype name="test_geomType">
<complexcontent>
<extension base="gml:AbstractFeatureType">
<sequence>
<element maxOccurs="1" minOccurs="0" name="type" nillable="true" type="xsd:string"/>
<element maxOccurs="1" minOccurs="0" name="originating_center" nillable="true" type="xsd:string"/>
<element maxOccurs="1" minOccurs="0" name="issue_time" nillable="true" type="xsd:date"/>
<element maxOccurs="1" minOccurs="0" name="the_geom" nillable="true" type="gml:SurfacePropertyType"/>
</sequence>
</extension>
</complexcontent>
</complextype>
<element name="test_geom" substitutionGroup="gml:_Feature" type="wims:test_geomType"/>
</schema>
And the schema.xml generated is like that :
<xs:complexType name = "test_geom_Type" >
<xs:complexContent >
<xs:extension base = "gml:AbstractFeatureType" >
<xs:sequence >
<xs:element type = "xs:string" minOccurs = "1" name = "type"
nillable = "false" maxOccurs = "1" />
<xs:element type = "xs:string" minOccurs = "1" name =
"originating_center" nillable = "false" maxOccurs = "1" />
<xs:element type = "xs:dateTime" minOccurs = "1" name =
"issue_time" nillable = "false" maxOccurs = "1" />
<xs:element type = "gml:PolygonPropertyType" minOccurs = "1"
name = "the_geom" nillable = "false" maxOccurs = "1" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
whatever i do, i could not achieve to tell geoserver that issue_time is
dateTime not a simple date....
When i try to insert an item via xfs insert request, i failed :
<ows:ExceptionReport version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/ows
http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>
java.lang.RuntimeException: Parsing failed for issue_time:
java.lang.IllegalArgumentException: 2006-12-14T16:08:13.000
</ows:ExceptionText>
<ows:ExceptionText>
org.geoserver.platform.ServiceException:
java.lang.RuntimeException: Parsing failed for issue_time:
java.lang.IllegalArgumentException:
2006-12-14T16:08:13.000 at
org.geoserver.ows.Dispatcher.exception(Dispatcher.java:1144)
.....
BUG or mis configuration ?
Thank you for your help,
perhaps i should post it to the devlevel list ???
Sébastien.
!DSPAM:4007,468927b9321681030819293!
------------------------------------------------------------------------
-------------------------------------------------------------------------
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/
!DSPAM:4007,468927b9321681030819293!
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,468927b9321681030819293!