[Geoserver-devel] Improving the SRS demo page to show possible axis orders (EPSG and internal)

Hi,
as you probably know the “axis order issue” keeps on being source of issues.
One of the problems is that people keep on assuming GeoServer picks in their opinion the
wrong axis order, and the demo page is not helping because it only shows the internal
axis order, the one forced east/north, instead of showing the external one chosen
by the latest OGC protocols.

I’ve prepared a pull request changing the SRS description page to hopefully show both cases,
in two separate tabs, here is an example for a projected SRS that in the EPSG database is oriented
North/East (kept the text small, but if you are interested focus on the two axis declarations
at the end, and the latitude/longitude bits in the middle):

Inline image 1

Inline image 4

The code is “flipping” the axis of the code using exactly the same logic as WMS 1.3 (calling
the very same method), see the pull request for details:

https://github.com/geoserver/geoserver/pull/2557

Hopefully this will help some in figuring out eventual axis order issues.
As an improvement it’s probably not something that we want to backport after the RC… and honestly
I did in it my spare time, I’m not pressed to ask for a backport to start with :-p

Comments, proposed code improvements, all welcomed.

Cheers
Andrea

···

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

On 02/10/17 06:21, Andrea Aime wrote:

Hopefully this will help some in figuring out eventual axis order issues.

That looks quite handy. We will still see users who do not understand.

Kind regards,

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand

Hi,

I have never known that the srs demo, for example

http://localhost:8080/geoserver/web/wicket/bookmarkable/org.geoserver.web.demo.SRSDescriptionPage?3&code=EPSG:2393 show an internal description. I have been comparing that info against WKT from the EPSG registry

http://epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::2393 and thought that Geoserver is definitely having wrong descriptions but been happy that Geoserver still, probably due to some clever trick, works right also as WMS 1.3.0 and WFS >=1.1.0.

I appreciate this improvement. It should make it much easier to handle cases like

https://osgeo-org.atlassian.net/browse/GEOS-8206 in the future.

-Jukka Rahkonen-

(attachments)

Selezione_361.png
Selezione_363.png

···

Lähettäjä: Andrea Aime andrea.aime@anonymised.com
Lähetetty: 1. lokakuuta 2017 20:21
Vastaanottaja: Geoserver-devel
Aihe: [Geoserver-devel] Improving the SRS demo page to show possible axis orders (EPSG and internal)

Hi,
as you probably know the “axis order issue” keeps on being source of issues.
One of the problems is that people keep on assuming GeoServer picks in their opinion the
wrong axis order, and the demo page is not helping because it only shows the internal
axis order, the one forced east/north, instead of showing the external one chosen
by the latest OGC protocols.

I’ve prepared a pull request changing the SRS description page to hopefully show both cases,
in two separate tabs, here is an example for a projected SRS that in the EPSG database is oriented
North/East (kept the text small, but if you are interested focus on the two axis declarations
at the end, and the latitude/longitude bits in the middle):

Inline image 1

Inline image 4

The code is “flipping” the axis of the code using exactly the same logic as WMS 1.3 (calling
the very same method), see the pull request for details:

https://github.com/geoserver/geoserver/pull/2557

Hopefully this will help some in figuring out eventual axis order issues.
As an improvement it’s probably not something that we want to backport after the RC… and honestly
I did in it my spare time, I’m not pressed to ask for a backport to start with :-p

Comments, proposed code improvements, all welcomed.

Cheers
Andrea

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.