[Geoserver-users] Problem visualizing coordinate grid layer when changing SRS

Hi everybody.

I have a coordinate grid layer in Geoserver in 4326 SRS. When I previsualize it, it’s all right (attached good.jpg):

http://localhost:8080/geoserver/cite/wms?service=WMS&version=1.0.0&request=GetMap&layers=cite:ne_10m_graticules_1&styles=&Bbox=-50,10,50,60.0&width=660&height=330&crs=EPSG:4326&format=application/openlayers

But when I try to visualize in a different SRS (4258, por example) some of the longitude lines (meridians) disappear (attached bad.jpg):

http://localhost:8080/geoserver/cite/wms?service=WMS&version=1.0.0&request=GetMap&layers=cite:ne_10m_graticules_1&styles=&Bbox=-50,10,50,60.0&width=660&height=330&crs=EPSG:4258&format=application/openlayers

Any idea what’s happening?

Thanks in advance.

Pedro Briones Garcia
Jefe de Grupo de Actuaciones y Proyectos

Gerencia de Sistemas de Información Geográfica

Grupo Tragsa - SEPI

Calle Julián Camarillo 6 B - 28037 Madrid
Tel.: 913226489 - 88216 - Fax: 913226005
pbg@anonymised.com www.tragsa.es

En beneficio del medio ambiente, imprime este e-mail sólo si realmente es necesario
For the benefit of the environment, print this e-mail only if you really need


********************************************************************************************** El consumo de papel es perjudicial para el medio ambiente. Por favor, téngalo en cuenta antes de imprimir este mensaje. AVISO LEGAL: Este mensaje y sus anexos pueden contener información confidencial o legalmente protegida. Está dirigido únicamente a la persona o entidad indicada como destinatarios del mensaje. Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente. **********************************************************************************************


bad.jpg

good.jpg

2014-10-24 9:27 GMT+02:00 Pedro Briones Garcia <pbg@anonymised.com>:

  Hi everybody.

I have a coordinate grid layer in Geoserver in *4326* SRS. When I
previsualize it, it’s all right (attached *good.jpg*):

http://localhost:8080/geoserver/cite/wms?service=WMS&version=1.0.0&request=GetMap&layers=cite:
*ne_10m_graticules_1*
&styles=&Bbox=-50,10,50,60.0&width=660&height=330&crs=EPSG:*4326*
&format=application/openlayers
<http://localhost:8080/geoserver/cite/wms?service=WMS&version=1.0.0&request=GetMap&layers=cite:ne_10m_graticules_1&styles=&Bbox=-50,10,50,60.0&width=660&height=330&crs=EPSG:4326&format=application/openlayers&gt;

But when I try to visualize in a different SRS (*4258*, por example) some
of the longitude lines (meridians) disappear (attached *bad.jpg*):

http://localhost:8080/geoserver/cite/wms?service=WMS&version=1.0.0&request=GetMap&layers=cite:
*ne_10m_graticules_1*
&styles=&Bbox=-50,10,50,60.0&width=660&height=330&crs=EPSG:*4258*
&format=application/openlayers
<http://localhost:8080/geoserver/cite/wms?service=WMS&version=1.0.0&request=GetMap&layers=cite:ne_10m_graticules_1&styles=&Bbox=-50,10,50,60.0&width=660&height=330&crs=EPSG:4258&format=application/openlayers&gt;

Any idea what’s happening?

I believe the graticule is defined only by its extreme points, which means
the meridians touch the pole?
When you reproject them these same points are going over the pole and
getting "strange" coordinates
as a result, which is likely what's causing them to disappear from the map.

There is some improvements in GeoServer 2.6.0 to handle datum shift issues,
but we mostly worked on
what happens to geometries that end up crossing the dateline due to the
shift, don't think we worked
on cutting/extending meridians to deal pole cross-over

Cheers
Andrea

--

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

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.

-------------------------------------------------------