[Geoserver-users] Display EPSG:4326 wms over EPSG:25832 GWCbaselayer seriously wrong!

Hi,

I sent this originally to the openlayers lists…but it is probably a geoserver issue.

Hi,

I have discovered that one of my projects does not display WMS Layers over a GWC basemap anymore. It used to work fine, but something has obviously been changed …I suspect in geoserver but I´m not sure.

http://maps.zgb.de/geoportal/os.html

This is a mashup demostrating what I mean…the basemap is from GWC in geoserver. The Basemap is defined as EPSG:25832. I used to be able to easily define a wms layer and this would be displayed without any trouble over the basemap. Now it doesn´t. I will only display when the basemap is in the same native projection!!!

I thought that geoserver would automatically redefine the wms projection based on the basemaps options…am I right?

so why doesn´t it work here?

Thanks for any help,

Robert

----- Weitergeleitete Message -----
Von: Arnd Wippermann arnd.wippermann@anonymised.com
An: ‘Robert Buckley’ robertdbuckley@anonymised.com
CC: openlayers-users@anonymised.com26…
Gesendet: 22:08 Mittwoch, 24.Oktober 2012
Betreff: AW: [OpenLayers-Users] Display EPSG:4326 wms over EPSG:25832 GWCbaselayer

There seems something wrong with GeoServer transformation to EPSG:25832. The data is shifted ca. 3 Million to east.

http://maps.zgb.de/geoserver/wms
?SERVICE=WMS
&LAYERS=zgb%3ABrutvoegel_2010%2Czgb%3AGrenzen_mg
&FORMAT=image%2Fpng
&VERSION=1.1.1
&TRANSPARENT=true
&REQUEST=GetMap
&STYLES=
&EXCEPTIONS=application%2Fvnd.ogc.se_inimage
&SRS=EPSG%3A25832
&BBOX=3600489.7789,5792092.2535,3678761.29585,5870363.77045
&WIDTH=256
&HEIGHT=256

The request will show some data, but the BBOX is not in EPSG:25832 coordinates:
http://maps.zgb.de/geoserver/wms?SERVICE=WMS&LAYERS=zgb%3ABrutvoegel_2010%2Czgb%3AGrenzen_mg&FORMAT=image%2Fpng&VERSION=1.1.1&TRANSPARENT=true&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A25832&BBOX=3600489.7789,5792092.2535,3678761.29585,5870363.77045&WIDTH=256&HEIGHT=256

It’ a question for GeoServer.

Arnd

I remembered that I did some testing a while back with custom coordinate operations.

I had tried to create an operation between EPSG:31467 and EPSG:25832 using the BETA2007.gsb file.

It seems that it is this configuration that messed up my system…or I simply did it wrong.

This was the content of “epsg_operations.,properties”

31467,25832=PARAM_MT[“NTv2”, \PARAMETER[“Latitude and longitude difference file”, “BETA2007.gsb”]]

and the BETA2007.gsb was in the same folder.

Once I had removed these files and restarted tomcat6 the wms layers were once again displayed.

Thanks,

Robert


Von: Robert Buckley robertdbuckley@anonymised.com
An:geoserver-users@lists.sourceforge.netgeoserver-users@anonymised.comorge.net
Gesendet: 7:21 Donnerstag, 25.Oktober 2012
Betreff: [Geoserver-users] Display EPSG:4326 wms over EPSG:25832 GWCbaselayer seriously wrong!

Hi,

I sent this originally to the openlayers lists…but it is probably a geoserver issue.

Hi,

I have discovered that one of my projects does not display WMS Layers over a GWC basemap anymore. It used to work fine, but something has obviously been changed …I suspect in geoserver but I´m not sure.

http://maps.zgb.de/geoportal/os.html

This is a mashup demostrating what I mean…the basemap is from GWC in geoserver. The Basemap is defined as EPSG:25832. I used to be able to easily define a wms layer and this would be displayed without any trouble over the basemap. Now it doesn´t. I will only display when the basemap is in the same native projection!!!

I thought that geoserver would automatically redefine the wms projection based on the basemaps options…am I right?

so why doesn´t it work here?

Thanks for any help,

Robert

----- Weitergeleitete Message -----
Von: Arnd Wippermann arnd.wippermann@anonymised.com
An: ‘Robert Buckley’ robertdbuckley@anonymised.com
CC: openlayers-users@anonymised.com
Gesendet: 22:08 Mittwoch, 24.Oktober 2012
Betreff: AW: [OpenLayers-Users] Display EPSG:4326 wms over EPSG:25832 GWCbaselayer

There seems something wrong with GeoServer transformation to EPSG:25832. The data is shifted ca. 3 Million to east.

http://maps.zgb.de/geoserver/wms
?SERVICE=WMS
&LAYERS=zgb%3ABrutvoegel_2010%2Czgb%3AGrenzen_mg
&FORMAT=image%2Fpng
&VERSION=1.1.1
&TRANSPARENT=true
&REQUEST=GetMap
&STYLES=
&EXCEPTIONS=application%2Fvnd.ogc.se_inimage
&SRS=EPSG%3A25832
&BBOX=3600489.7789,5792092.2535,3678761.29585,5870363.77045
&WIDTH=256
&HEIGHT=256

The request will show some data, but the BBOX is not in EPSG:25832 coordinates:
http://maps.zgb.de/geoserver/wms?SERVICE=WMS&LAYERS=zgb%3ABrutvoegel_2010%2Czgb%3AGrenzen_mg&FORMAT=image%2Fpng&VERSION=1.1.1&TRANSPARENT=true&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A25832&BBOX=3600489.7789,5792092.2535,3678761.29585,5870363.77045&WIDTH=256&HEIGHT=256

It’ a question for GeoServer.

Arnd


Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct


Geoserver-users mailing list
Geoserver-users@anonymised.comurceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Thu, Oct 25, 2012 at 9:11 AM, Robert Buckley
<robertdbuckley@anonymised.com> wrote:

I remembered that I did some testing a while back with custom coordinate
operations.

I had tried to create an operation between EPSG:31467 and EPSG:25832 using
the BETA2007.gsb file.

It seems that it is this configuration that messed up my system...or I
simply did it wrong.

This was the content of "epsg_operations.,properties"

31467,25832=PARAM_MT["NTv2", \PARAMETER["Latitude and longitude difference
file", "BETA2007.gsb"]]

While not impossible, this is odd: you are trying to use a grid to
transform between two
projected systems.
All the grids I've seen so far are used to switch between geographic
ones, normally
the file is a latitude/longitude grid shift, in your case maybe
between 4314 and 4258,
the geographic systems under the projected ones:

http://prj2epsg.org/epsg/31467
http://prj2epsg.org/epsg/25832

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it 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

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

<robertdbuckley@anonymised.com> wrote:

31467,25832=PARAM_MT["NTv2", \PARAMETER["Latitude and longitude difference
file", "BETA2007.gsb"]]

<andrea.aime@anonymised.com>:

All the grids I've seen so far are used to switch between geographic
ones, normally
the file is a latitude/longitude grid shift, in your case maybe
between 4314 and 4258,

+1.

BETA2007.gsb is defined between EPSG:4314 and EPSG:4258.

Look for code 15948 in http://www.epsg-registry.org/

Oscar.

Hi,

EPSG:4314 and EPSG:4258 are unknown to me

According to this …

http://crs.bkg.bund.de/crseu/crs/descrtrans/BeTA/de_dhdn2etrs_beta.php

The beta2007 is used for

Quell-Koordinatenreferenzsystem Identifikator DE_DHDN / GK_3
Ziel-Koordinatenreferenzsystem Identifikator ETRS89 / UTM

Quell = Source
Ziel = Target

…“BeTA2007 enthält implizit die Konvertierung (Wechsel des Koordinatensystems) von DE_DHDN / GK_3 nach DE_DHDN / Lat-Lon und nach der Transformation mit NTv2 (Wechsel des geodätischen Datums) zu ETRS89 / Lat-Lon die Konvertierung nach ETRS89 / UTM”

between DH:DHDN / GK zone 3 to ETRS89 / UTM

Therefore EPSG:31467 to EPSG:25832

Or am i missing something?

yours,

Rob


Von: Oscar Fonts <oscar.fonts@anonymised.com…>
An:geoserver-users@lists.sourceforge.netgeoserver-users@lists.sourceforge.net
CC: Robert Buckley robertdbuckley@anonymised.com; Andrea Aime andrea.aime@anonymised.com
Gesendet: 15:29 Donnerstag, 25.Oktober 2012
Betreff: Re: [Geoserver-users] Display EPSG:4326 wms over EPSG:25832 GWCbaselayer seriously wrong!SOLVED

<robertdbuckley@anonymised.com> wrote:

31467,25832=PARAM_MT[“NTv2”, \PARAMETER[“Latitude and longitude difference
file”, “BETA2007.gsb”]]

<andrea.aime@anonymised.com>:

All the grids I’ve seen so far are used to switch between geographic
ones, normally
the file is a latitude/longitude grid shift, in your case maybe
between 4314 and 4258,

+1.

BETA2007.gsb is defined between EPSG:4314 and EPSG:4258.

Look for code 15948 in http://www.epsg-registry.org/

Oscar.

On Thu, Oct 25, 2012 at 4:18 PM, Robert Buckley <robertdbuckley@anonymised.com4…> wrote:

Hi,

EPSG:4314 and EPSG:4258 are unknown to me

According to this …

http://crs.bkg.bund.de/crseu/crs/descrtrans/BeTA/de_dhdn2etrs_beta.php

I’ve translated that page with Google in italian and what it says is that the
transformation is lat/lon to lat/lon, so not between the two projected
systems, but between their base geographic reference systems instead,
which are EPSG:4314 and EPSG:4258 respectively.

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it 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