Hi,


I have published INSPIRE Buildings WFS service using Geoserver 2.19.1 with
app-schema extension.



I noticed that there is an issue with the value of srsName attribute
returned by GetFeature response.



The default coordinate system of the service is EPSG:4258 and for example
request

http://localhost:8080/geoserver/bu-core2d/ows?service=WFS&version=2.0.0&request=GetFeature&typeNames=bu-core2d:Building&srsname=http://www.opengis.net/def/crs/EPSG/0/3857

returns geometry like below

<bu-core2d:geometry2D>

<bu-base:BuildingGeometry2D>

<bu-base:geometry>

<gml:Polygon srsDimension="2" srsName="
http://www.opengis.net/gml/srs/epsg.xml#4258";>

<gml:exterior>

<gml:LinearRing>

<gml:posList> 2117654.24530768 6500192.36600498 2117649.73563271
6500173.6438385 2117640.75987565 6500175.82634509 2117645.28517001
6500194.54851649 2117654.24530768 6500192.3660049</gml:posList>

</gml:LinearRing>

</gml:exterior>

</gml:Polygon>

</bu-base:geometry>

<bu-base:referenceGeometry>true</bu-base:referenceGeometry>

<bu-base:horizontalGeometryReference xlink:href="
http://inspire.ec.europa.eu/codelist/HorizontalGeometryReferenceValue/footPrint
"/>

<bu-base:horizontalGeometryEstimatedAccuracy xsi:nil="true"
nilReason="unknown" uom="m"/>

</bu-base:BuildingGeometry2D>

</bu-core2d:geometry2D>



The coordinates are transformed adequately to EPSG:3857, but the value of
srsName points out to EPSG:4258 (
http://www.opengis.net/gml/srs/epsg.xml#4258). It works that way no matter
which value of srsName parameter I choose in the request.



Secondly, I have set up the service to return the srsName in OGC HTTP URI
style. However, this does not work, and CRS is encoded as OGC HTTP URL
style.



After further investigation, I noticed that the problem is related to the
feature types that contain complex geometry, or in other words, having
geometry encoded as data type. For example, the same problem exists for the
feature type Address from INSPIRE theme addresses.

https://mapy.geoportal.gov.pl/wss/service/wfsAD/guest?service=WFS&request=GetFeature&version=2.0.0&typenames=ad:Address&count=10&srsname=http://www.opengis.net/def/crs/EPSG/0/3857



Is there any workaround for this?



Best regards,

Marcin
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to