hi all,
i try to bind my xml data POST through WFS-geoserver to postGIS database.
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:timePosition>
</gml:TimeInstant>
</wims:issuedTime>
.....
The xml file schema.xml
<xs:complexType name = "ice_geom_Type" >
<xs:complexContent >
<xs:extension base = "gml:AbstractFeatureType" >
<xs:sequence >
<xs:element type = "xs:string" xpath="/wims:WIMSProduct/wims:weatherProductMetaData/wims:Weather/ProductMetaData/" minOccurs = "0" name = "type" nillable = "true" maxOccurs = "1" />
<xs:element type = "xs:string" minOccurs = "0" name = "originating_center" nillable = "true" maxOccurs = "1" />
<xs:element minOccurs = "0" name = "issue_time" nillable = "true" maxOccurs = "1" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
--
Sébastien Geindre
Hi Sébastien,
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. From
what I see below it appears that you are referencing nested content, and
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?
-Justin
Sébastien Geindre wrote:
hi all,
i try to bind my xml data POST through WFS-geoserver to postGIS database.
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:timePosition>
</gml:TimeInstant>
</wims:issuedTime>
.....
The xml file schema.xml
<xs:complexType name = "ice_geom_Type" >
<xs:complexContent >
<xs:extension base = "gml:AbstractFeatureType" >
<xs:sequence >
<xs:element type = "xs:string"
xpath="/wims:WIMSProduct/wims:weatherProductMetaData/wims:Weather/ProductMetaData/"
minOccurs = "0" name = "type" nillable = "true" maxOccurs = "1" />
<xs:element type = "xs:string" minOccurs = "0" name =
"originating_center" nillable = "true" maxOccurs = "1" />
<xs:element minOccurs = "0" name = "issue_time" nillable =
"true" maxOccurs = "1" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
Justin Deoliveira a écrit :
Hi Sébastien,
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. From
what I see below it appears that you are referencing nested content, and
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?
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 pojo, binding with hibernate, put it in the spatial db....WFS seems to do all of it...no ?
example : issueTime is part of the weatherMetadata, common part of all 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ébastien Geindre wrote:
hi all,
i try to bind my xml data POST through WFS-geoserver to postGIS database.
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:timePosition>
</gml:TimeInstant>
</wims:issuedTime>
.....
The xml file schema.xml
<xs:complexType name = "ice_geom_Type" >
<xs:complexContent >
<xs:extension base = "gml:AbstractFeatureType" >
<xs:sequence >
<xs:element type = "xs:string" xpath="/wims:WIMSProduct/wims:weatherProductMetaData/wims:Weather/ProductMetaData/" minOccurs = "0" name = "type" nillable = "true" maxOccurs = "1" />
<xs:element type = "xs:string" minOccurs = "0" name = "originating_center" nillable = "true" maxOccurs = "1" />
<xs:element minOccurs = "0" name = "issue_time" nillable = "true" maxOccurs = "1" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
I see, unfortunately this wont really work, as i said before this type
of functionality is part of the "complex features" branch.
http://docs.codehaus.org/display/GEOS/Complex+Datastore
Can Rob or Gabriel provide a more recent link.
So unfortunately at this time I don't think you can achieve your goal
via straight wfs. Although once you populate your spatial database you
can use geoserver and wfs to publish it.
Sorry I cant give you a better answer.
-Justin
Sébastien Geindre wrote:
Justin Deoliveira a écrit :
Hi Sébastien,
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. From
what I see below it appears that you are referencing nested content, and
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?
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
pojo, binding with hibernate, put it in the spatial db....WFS seems to
do all of it...no ?
example : issueTime is part of the weatherMetadata, common part of all
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ébastien Geindre wrote:
hi all,
i try to bind my xml data POST through WFS-geoserver to postGIS
database.
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:timePosition>
</gml:TimeInstant>
</wims:issuedTime>
.....
The xml file schema.xml
<xs:complexType name = "ice_geom_Type" >
<xs:complexContent >
<xs:extension base = "gml:AbstractFeatureType" >
<xs:sequence >
<xs:element type = "xs:string"
xpath="/wims:WIMSProduct/wims:weatherProductMetaData/wims:Weather/ProductMetaData/"
minOccurs = "0" name = "type" nillable = "true" maxOccurs = "1" />
<xs:element type = "xs:string" minOccurs = "0" name =
"originating_center" nillable = "true" maxOccurs = "1" />
<xs:element minOccurs = "0" name = "issue_time" nillable =
"true" maxOccurs = "1" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
!DSPAM:4007,467fee43149471637810514!
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
hi Sebastien,
yes - the sort of thing is exactly what most real-world WFS will need to do - serve data according to a well-known "community" schema.
We are about to package and release a new version of geoserver, using only plugins to the current geotools and geoserver "trunk" code bases to replace the "Commuity Schema Support 0.3" prototype we posted about a year ago... This will be a temporary solution, pending maturity of geoserver and geotools code base to bundle these modules by default.
We can do just what you are describing (I think) but we dont have much documentation ready.
Current funded efforts have just finished, so further documentation and testing is on volunteer time, although I strongly recommend you consult with Gabriel Roldan for support. I can help on bigger picture system and schema design issues, but if you have a schema and sample data available, Gabriel can probably provide a cost-effective kick start for you.
Regards
Rob Atkinson
Justin Deoliveira wrote:
I see, unfortunately this wont really work, as i said before this type
of functionality is part of the "complex features" branch.
http://docs.codehaus.org/display/GEOS/Complex+Datastore
Can Rob or Gabriel provide a more recent link.
So unfortunately at this time I don't think you can achieve your goal
via straight wfs. Although once you populate your spatial database you
can use geoserver and wfs to publish it.
Sorry I cant give you a better answer.
-Justin
Sébastien Geindre wrote:
Justin Deoliveira a écrit :
Hi Sébastien,
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. From
what I see below it appears that you are referencing nested content, and
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?
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
pojo, binding with hibernate, put it in the spatial db....WFS seems to
do all of it...no ?
example : issueTime is part of the weatherMetadata, common part of all
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ébastien Geindre wrote:
hi all,
i try to bind my xml data POST through WFS-geoserver to postGIS
database.
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:timePosition>
</gml:TimeInstant>
</wims:issuedTime>
.....
The xml file schema.xml
<xs:complexType name = "ice_geom_Type" >
<xs:complexContent >
<xs:extension base = "gml:AbstractFeatureType" >
<xs:sequence >
<xs:element type = "xs:string"
xpath="/wims:WIMSProduct/wims:weatherProductMetaData/wims:Weather/ProductMetaData/"
minOccurs = "0" name = "type" nillable = "true" maxOccurs = "1" />
<xs:element type = "xs:string" minOccurs = "0" name =
"originating_center" nillable = "true" maxOccurs = "1" />
<xs:element minOccurs = "0" name = "issue_time" nillable =
"true" maxOccurs = "1" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
!DSPAM:4007,467fee43149471637810514!
Thanks all of you.
Rob Atkinson a écrit :
hi Sebastien,
yes - the sort of thing is exactly what most real-world WFS will need to do - serve data according to a well-known "community" schema.
We are about to package and release a new version of geoserver, using only plugins to the current geotools and geoserver "trunk" code bases to replace the "Commuity Schema Support 0.3" prototype we posted about a year ago... This will be a temporary solution, pending maturity of geoserver and geotools code base to bundle these modules by default.
do you know when this package will be ready ??
maybe i could download it from a svn branch ?
We can do just what you are describing (I think) but we dont have much documentation ready.
Current funded efforts have just finished, so further documentation and testing is on volunteer time, although I strongly recommend you consult with Gabriel Roldan for support. I can help on bigger picture system and schema design issues, but if you have a schema and sample data available, Gabriel can probably provide a cost-effective kick start for you.
Regards
Rob Atkinson
Justin Deoliveira wrote:
I see, unfortunately this wont really work, as i said before this type
of functionality is part of the "complex features" branch.
http://docs.codehaus.org/display/GEOS/Complex+Datastore
Can Rob or Gabriel provide a more recent link.
So unfortunately at this time I don't think you can achieve your goal
via straight wfs. Although once you populate your spatial database you
can use geoserver and wfs to publish it.
Sorry I cant give you a better answer.
-Justin
Sébastien Geindre wrote:
Justin Deoliveira a écrit :
Hi Sébastien,
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. From
what I see below it appears that you are referencing nested content, and
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?
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
pojo, binding with hibernate, put it in the spatial db....WFS seems to
do all of it...no ?
example : issueTime is part of the weatherMetadata, common part of all
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ébastien Geindre wrote:
hi all,
i try to bind my xml data POST through WFS-geoserver to postGIS
database.
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:timePosition>
</gml:TimeInstant>
</wims:issuedTime>
.....
The xml file schema.xml
<xs:complexType name = "ice_geom_Type" >
<xs:complexContent >
<xs:extension base = "gml:AbstractFeatureType" >
<xs:sequence >
<xs:element type = "xs:string"
xpath="/wims:WIMSProduct/wims:weatherProductMetaData/wims:Weather/ProductMetaData/"
minOccurs = "0" name = "type" nillable = "true" maxOccurs = "1" />
<xs:element type = "xs:string" minOccurs = "0" name =
"originating_center" nillable = "true" maxOccurs = "1" />
<xs:element minOccurs = "0" name = "issue_time" nillable =
"true" maxOccurs = "1" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
!DSPAM:4007,467fee43149471637810514!
--
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre@anonymised.com
05 61 07 84 93