[Geoserver-devel] Gs2.5.2 ImageMosaic layers show totally white image for version=1.3.0 even if bbox values swapped. Related to GEOS-6651.

Hi Ville,

White map is not an error, BBOX just does not find any data. With these parameters you will see something.

REQUEST=GetMap&

SERVICE=WMS&

VERSION=1.1.1&

WIDTH=459&

HEIGHT=346&

LAYERS=vantaa_vrad&

TRANSPARENT=TRUE&

FORMAT=image%2Fpng&

BBOX=217793.48568830438,6559579.00279505,546456.0579426396,6807329.00279505&

SRS=EPSG:3067&

STYLES=

There is a slight error in 1.3.0 example because not only axis are sometimes flipped in WMS 1.3.0, also what used to be SRS is now CRS because there must be something fundamentally wrong with SRS. But I believe that this was a copy-paste error.

However, I believe that we have found now something that is really interesting. Your layers which work OK with WMS 1.1.1 give this error with valid 1.3.0 requests:

Error rendering coverage on the fast path

org.opengis.geometry.MismatchedReferenceSystemException: The coordinate reference system must be the same for all objects.

The coordinate reference system must be the same for all objects.

Objects are the same for WMS 1.1.1 and 1.3.0 but only latter finds some of them problematic.

I have no idea where the error comes but it is not anything built-in. Geoserver does work with WMS 1.3.0 in EPSG:3067. You can test it even with top:states

http://demo.opengeo.org/geoserver/wms?REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&WIDTH=459&HEIGHT=346&LAYERS=topp%3Astates&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=-4.1951248737102486E7,-1.7460255973785944E7,6.963191131485114E7,6.6652540056662746E7&CRS=EPSG:3067&STYLES=

-Jukka-

···

Ville Karppinen wrote:

Thank you really much Andrea and Jukka for your quick answers.

I am still wondering, why is it so that I can not get a proper image when using EPSG:3067 even if I try bbox in both ways. If I swap the value, I get white image. If I do not swap, I get the error XML.

So, does it require that I need to use totally different SRS?

White:
http://wms.fmi.fi/fmi-apikey/4bda0057-9e4a-453e-9fa9-966a15a368e1/geoserver/Radar/wms?LAYERS=Radar%3Asuomi_rr_eureffin&STYLES=&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&SRS=EPSG%3A3067&BBOX=6335621.1670142,-117278.40864788,7907751.5372634,874514.7741461&WIDTH=323&HEIGHT=512

Error:
http://wms.fmi.fi/fmi-apikey/4bda0057-9e4a-453e-9fa9-966a15a368e1/geoserver/Radar/wms?LAYERS=Radar%3Asuomi_rr_eureffin&STYLES=&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&SRS=EPSG%3A3067&BBOX=-117278.40864788,6335621.1670142,874514.7741461,7907751.5372634&WIDTH=323&HEIGHT=512

Best regards,

Ville Karppinen
[ville.karppinen@...3920...](mailto:ville.karppinen@...3920...)
+358407509542

On 09/24/2014 01:22 PM, Rahkonen Jukka (Tike) wrote:

Hi,

I had not noticed before that EPSG folks are trolling with the official remarks as in

http://www.epsg-registry.org/indicio/query?request=GetRepositoryItem&id=urn:ogc:def:crs:EPSG::3067

gml:remarksIdentical to ETRS89 / UTM zone 35N (code 25835) except for area of use.

See ETRS89 / TM35FIN(N,E) (code 5048) for more usually used alternative with

axis order reversed.</gml:remarks>

Nobody uses EPSG:5048 in Finland as far as I know.

-Jukka Rahkonen-

Andrea Aime wrote:

On Wed, Sep 24, 2014 at 11:58 AM, Ville Karppinen <ville.karppinen@…3920…> wrote:

My question is related to the issue https://jira.codehaus.org/browse/GEOS-6651 which ended up to be a user error related to the bbox value. It seems that when version 1.3.0 bbox coordinates are swapped, only some of the images are shown properly. This seems to depend on the srs-value. For example in our services, &srs=EPSG:3035 shows images properly but when using &srs=EPSG:3067 images become totally white.

Yes, WMS 1.3 requires swapped coordinates only if the SRS in question uses

north/east orientation in the official EPSG database, you can check its online

version here: http://www.epsg-registry.org/

As a simplified rule, most of the geographic CRS need to use lat/lon order,

most of the projected ones are east/north instead (although there are a few exceptions

of projected SRS that still use north/east order)

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.


A summary based on previous comments to give a clear idea of this issue:

Some layers which work OK with WMS 1.1.1 give an error with valid 1.3.0 requests.

EPSG:3067 is easting-northing system so there is no need to flip the axis for 1.3.0 bbox.

Version 1.1.0 gives an image:
http://wms.fmi.fi/fmi-apikey/4bda0057-9e4a-453e-9fa9-966a15a368e1/geoserver/Radar/wms?LAYERS=Radar%3Asuomi_rr_eureffin&STYLES=&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A3067&BBOX=-117278.40864788,6335621.1670142,874514.7741461,7907751.5372634&WIDTH=323&HEIGHT=512

Version 1.3.0 gives an error, even if an image is expected (no need to flip bbox, using CRS instead of SRS in URL):
http://wms.fmi.fi/fmi-apikey/4bda0057-9e4a-453e-9fa9-966a15a368e1/geoserver/Radar/wms?LAYERS=Radar%3Asuomi_rr_eureffin&STYLES=&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG%3A3067&BBOX=-117278.40864788,6335621.1670142,874514.7741461,7907751.5372634&WIDTH=323&HEIGHT=512

1.3.0 error:
<ServiceExceptionReport xmlns="http://www.opengis.net/ogc&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; version="1.3.0" xsi:schemaLocation="http://www.opengis.net/ogc http://wms.fmi.fi:80/fmi-apikey/4bda0057-9e4a-453e-9fa9-966a15a368e1/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd&quot;&gt;
<ServiceException>
Error rendering coverage on the fast path org.opengis.geometry.MismatchedReferenceSystemException: The coordinate reference system must be the same for all objects. The coordinate reference system must be the same for all objects.
</ServiceException>
</ServiceExceptionReport>

Best regards,

Ville Karppinen
ville.karppinen@anonymised.com
+358407509542

On Wed, Sep 24, 2014 at 2:02 PM, Ville Karppinen <ville.karppinen@anonymised.com.>
wrote:

Version 1.3.0 gives an error, even if an image is expected (no need to
flip bbox, using CRS instead of SRS in URL):

http://wms.fmi.fi/fmi-apikey/4bda0057-9e4a-453e-9fa9-966a15a368e1/geoserver/Radar/wms?LAYERS=Radar%3Asuomi_rr_eureffin&STYLES=&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG%3A3067&BBOX=-117278.40864788,6335621.1670142,874514.7741461,7907751.5372634&WIDTH=323&HEIGHT=512

1.3.0 error:
<ServiceExceptionReport xmlns="http://www.opengis.net/ogc&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; version="1.3.0"
xsi:schemaLocation="http://www.opengis.net/ogc

http://wms.fmi.fi:80/fmi-apikey/4bda0057-9e4a-453e-9fa9-966a15a368e1/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd
">
<ServiceException>
Error rendering coverage on the fast path
org.opengis.geometry.MismatchedReferenceSystemException: The coordinate
reference system must be the same for all objects. The coordinate
reference system must be the same for all objects.
</ServiceException>
</ServiceExceptionReport>

Do you have the full stack trace?
Also, any chance you can share a (small) dataset that can be used to
reproduce the issue you're seeing?

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.

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