Hi all,
New to the mailing list, so if I am posting this wrong, please forgive my inexperience.
I have a geoserver endpoint serving INSPIRE compliant environmental data (EPSG:3035) as WFS 2.0 (GML 3.2) through AppSchema from a PostGIS (pg 9.4) database.
I see that there is an error in my geoserver instance:
- in a WFS request, for example administrative units (request: http://inspire.biodiversity.ro/geoserver/ows?service=wfs&version=2.0.0&request=getfeature&typename=au:AdministrativeUnit&featureID=BC) I get the following response:
wfs:boundedBy
gml:Envelope
gml:lowerCorner2687567.4042999963 5533251.203599997</gml:lowerCorner>
gml:upperCorner2781594.9288999955 5660608.522499993</gml:upperCorner>
</gml:Envelope>
</wfs:boundedBy>
wfs:member
<au:AdministrativeUnit gml:id=“BC”>
gml:boundedBy
<gml:Envelope srsDimension=“2” srsName=“urn:ogc:def:crs:EPSG::3035”>
gml:lowerCorner2687567.4042999963 5533251.203599997</gml:lowerCorner>
gml:upperCorner2781594.9288999955 5660608.522499993</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
For the wfs:boundedBy element there is no declaration of srsName, and while that bounding box is correct and valid, since the srsName isn’t specified, GML validators, like the one from opengeospatial, http://cite.opengeospatial.org/teamengine/viewSessions.jsp, will not validate my GML, saying that the bounding box for WFS doesn’t have a SRS associated.
This issue is with any WFS generated GML, none of the requests seem to generate the required attributes for the WFS’s Envelope (i tried with shapefile, direct postgis data connections etc).
Is this a known issue for geoserver, or is it just a configuration that I am missing??? I am striving to get a response similar to the one bellow:
wfs:boundedBy
<gml:Envelope srsDimension=“2” srsName=“urn:ogc:def:crs:EPSG::3035”>
gml:lowerCorner2687567.4042999963 5533251.203599997</gml:lowerCorner>
gml:upperCorner2781594.9288999955 5660608.522499993</gml:upperCorner>
</gml:Envelope>
</wfs:boundedBy>
wfs:member
<au:AdministrativeUnit gml:id=“BC”>
gml:boundedBy
<gml:Envelope srsDimension=“2” srsName=“urn:ogc:def:crs:EPSG::3035”>
gml:lowerCorner2687567.4042999963 5533251.203599997</gml:lowerCorner>
gml:upperCorner2781594.9288999955 5660608.522499993</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
Kind regards,
Sorin RUSU