Imran Rajjad (
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Aa4c754d9-7620-446e-8c70-a2c018f794dd
) *created* an issue
GeoServer (
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiMzZiMmQ1YWU5OWE3NDRlN2ExMGY3ZmU3ODRkOWZlM2QiLCJwIjoiaiJ9
) / Bug (
https://osgeo-org.atlassian.net/browse/GEOS-9758?atlOrigin=eyJpIjoiMzZiMmQ1YWU5OWE3NDRlN2ExMGY3ZmU3ODRkOWZlM2QiLCJwIjoiaiJ9
) GEOS-9758 (
https://osgeo-org.atlassian.net/browse/GEOS-9758?atlOrigin=eyJpIjoiMzZiMmQ1YWU5OWE3NDRlN2ExMGY3ZmU3ODRkOWZlM2QiLCJwIjoiaiJ9
) CRS Panel (Resource Config GUI) overrides URN SRS format with EPSG:XXXX
format (
https://osgeo-org.atlassian.net/browse/GEOS-9758?atlOrigin=eyJpIjoiMzZiMmQ1YWU5OWE3NDRlN2ExMGY3ZmU3ODRkOWZlM2QiLCJwIjoiaiJ9
)
Issue Type: Bug Assignee: Imran Rajjad (
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Aa4c754d9-7620-446e-8c70-a2c018f794dd
) Attachments: image-2020-10-02-21-32-42-850.png,
image-2020-10-02-21-33-12-896.png Components: web Created: 02/Oct/20 6:42 PM
Fix Versions: 2.18-RC Priority: Medium Reporter: Imran Rajjad (
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Aa4c754d9-7620-446e-8c70-a2c018f794dd
)
Consider the below Remote WFS Layer with additional native SRS. One of the SRS
is in URN OGC format. (urn:ogc:def:crs:EPSG::4326)
<FeatureType xmlns:topp="http://www.topp.com">
<Name>topp:roads</Name>
<Title>roads</Title>
<Abstract />
<ows:Keywords>
<ows:Keyword>features</ows:Keyword>
<ows:Keyword>roads</ows:Keyword>
</ows:Keywords>
<DefaultSRS>EPSG:26713</DefaultSRS>
<OtherSRS>urn:ogc:def:crs:EPSG::4326</OtherSRS>
<OtherSRS>EPSG:3857</OtherSRS>
<ows:WGS84BoundingBox>
<ows:LowerCorner>-103.87779468316292 44.37288961726252</ows:LowerCorner>
<ows:UpperCorner>-103.62268570651278 44.50217396380937</ows:UpperCorner>
</ows:WGS84BoundingBox>
</FeatureType>
Steps to reproduce
Configure layer with URN OGC SRS
Configure a layer using epsg 4326 in urn ogc format. The WKT of underlying CRS
object shows correct Axis (y/x)
(
https://osgeo-org.atlassian.net/secure/attachment/33563/33563_image-2020-10-02-21-32-42-850.png
)
Save the layer, and open map preview, the layer seems to be rendering fine
Open the Layer page to Edit
Again open the layer page and press Apply . The CRS will switch axis back to
X/Y.
(
https://osgeo-org.atlassian.net/secure/attachment/33562/33562_image-2020-10-02-21-33-12-896.png
)
The GUI page depends upon the Text fields to generate the CRS object for
catalog persistence, the URN OGC is lost after page is saved or revisited for
editing. EPSG and URN OGC representations of same code can have different Axis
orders, hence this will cause issues ( 4326 is a common case).
The problem is at CRSPanel.toSRS (
https://github.com/geoserver/geoserver/blob/52e0ee805dd65f172e73b68495bbe3aab13d004e/src/web/core/src/main/java/org/geoserver/web/wicket/CRSPanel.java#L267
) function, which blindly converts a CRS object into EPSG code.
A fix is proposed to update the CRSPanel class to accept a boolean flag, which
will ensure the text field for SRS will always chose the string literal from
SRS Provider items. This will allow to keep other representations of SRS intact.
(
https://osgeo-org.atlassian.net/browse/GEOS-9758#add-comment?atlOrigin=eyJpIjoiMzZiMmQ1YWU5OWE3NDRlN2ExMGY3ZmU3ODRkOWZlM2QiLCJwIjoiaiJ9
) Add Comment (
https://osgeo-org.atlassian.net/browse/GEOS-9758#add-comment?atlOrigin=eyJpIjoiMzZiMmQ1YWU5OWE3NDRlN2ExMGY3ZmU3ODRkOWZlM2QiLCJwIjoiaiJ9
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100148-
sha1:d3a00c3 )
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel