From: <seb...@me...> - 2007-06-25 16:32:57
|
Justin Deoliveira a =E9crit : > Hi S=E9bastien, > > The schema.xml file is something that is not all that well supported in= > GeoServer unfortunately... All that it will do is affect the output of = a > DescribeFeatureType request, it wont really be used internally. > > Can you tell me a bit more about how you need to modify the schema. Fro= m > what I see below it appears that you are referencing nested content, an= d > attributes that are evaluated via xpath. This is something that falls > into the realm of "complex features" and is something that is in an > experimental stage at the moment. > > Gabriel: Can you possibly provide any more info / documentation? > =20 i try to put my gml data into a spatial database through WFS server then = request data still through WFS.... the data references gml type. and i do not want to rebuild all the stuuf : parse the xml, instantiate=20 pojo, binding with hibernate, put it in the spatial db....WFS seems to=20 do all of it...no ? example : issueTime is part of the weatherMetadata, common part of all=20 my weather data. for an ice cloud, i have an ice table with issueTime field. xml data is : <wims:WIMSProduct> <wims:weatherProductMetaData> <wims:WeatherProductMetaData> <wims:issuedTime> <gml:TimeInstant> <gml:timePosition>2006-12-14T12:08:13.000</gml:timePosition= > </gml:TimeInstant> </wims:issuedTime> .... and in postGIS, a dateTime type. so i need to bind them. sorry, my english is a too poor to be full-comprehensive !! > -Justin > > S=E9bastien Geindre wrote: > =20 >> hi all, >> >> i try to bind my xml data POST through WFS-geoserver to postGIS databa= se. >> So i tune schema.xml file but without any success.... >> >> so, i need some help ? or documentation ? >> >> >> example : my xml data >> <wims:WIMSProduct> >> <wims:weatherProductMetaData> >> <wims:WeatherProductMetaData> >> <wims:productType>ice</wims:productType> >> <wims:originatingCentre>FME</wims:originatingCentre> >> <wims:issuedTime> >> <gml:TimeInstant> >> <gml:timePosition>2006-12-14T12:08:13.000</gml:timePosit= ion> >> </gml:TimeInstant> >> </wims:issuedTime> >> ..... >> >> >> The xml file schema.xml >> <xs:complexType name =3D "ice_geom_Type" > >> <xs:complexContent > >> >> <xs:extension base =3D "gml:AbstractFeatureType" > >> >> <xs:sequence > >> >> <xs:element type =3D "xs:string"=20 >> xpath=3D"/wims:WIMSProduct/wims:weatherProductMetaData/wims:Weather/Pr= oductMetaData/"=20 >> minOccurs =3D "0" name =3D "type" nillable =3D "true" maxOccurs =3D "1= " /> >> >> <xs:element type =3D "xs:string" minOccurs =3D "0" name =3D=20 >> "originating_center" nillable =3D "true" maxOccurs =3D "1" /> >> >> <xs:element minOccurs =3D "0" name =3D "issue_time" nillable =3D= =20 >> "true" maxOccurs =3D "1" /> >> >> </xs:sequence> >> >> </xs:extension> >> >> </xs:complexContent> >> >> </xs:complexType> >> >> =20 > > > =20 |