Display EPSG:4326 wms over EPSG:25832 GWCbaselayer seriously wrong!

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Display EPSG:4326 wms over EPSG:25832 GWCbaselayer seriously wrong!

robertdbuckley
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.


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 <[hidden email]>
An: 'Robert Buckley' <[hidden email]>
CC: [hidden email]
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:
 
 
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Yours with thanks, Robert Buckley System: Linux Ubuntu 10.04 Server / Tomcat6 / Geoserver 2.1.2 / GeoWebCache 1.2.6)
Reply | Threaded
Open this post in threaded view
|

Display EPSG:4326 wms over EPSG:25832 GWCbaselayer seriously wrong!SOLVED

robertdbuckley
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 <[hidden email]>
An: "[hidden email]" <[hidden email]>
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.


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 <[hidden email]>
An: 'Robert Buckley' <[hidden email]>
CC: [hidden email]
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:
 
 
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users



------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Yours with thanks, Robert Buckley System: Linux Ubuntu 10.04 Server / Tomcat6 / Geoserver 2.1.2 / GeoWebCache 1.2.6)
Reply | Threaded
Open this post in threaded view
|

Re: Display EPSG:4326 wms over EPSG:25832 GWCbaselayer seriously wrong!SOLVED

geowolf
On Thu, Oct 25, 2012 at 9:11 AM, Robert Buckley
<[hidden email]> 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

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

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: Display EPSG:4326 wms over EPSG:25832 GWCbaselayer seriously wrong!SOLVED

Oscar Fonts
<[hidden email]> wrote:
>> 31467,25832=PARAM_MT["NTv2", \PARAMETER["Latitude and longitude difference
>> file", "BETA2007.gsb"]]

<[hidden email]>:
> 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.

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: Display EPSG:4326 wms over EPSG:25832 GWCbaselayer seriously wrong!SOLVED

robertdbuckley
Hi,

EPSG:4314 and EPSG:4258 are unknown to me

According to this ...


The beta2007 is used for 


Quell-Koordinatenreferenzsystem IdentifikatorDE_DHDN / GK_3
Ziel-Koordinatenreferenzsystem IdentifikatorETRS89 / 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 <[hidden email]>
An: "[hidden email]" <[hidden email]>
CC: Robert Buckley <[hidden email]>; Andrea Aime <[hidden email]>
Gesendet: 15:29 Donnerstag, 25.Oktober 2012
Betreff: Re: [Geoserver-users] Display EPSG:4326 wms over EPSG:25832 GWCbaselayer seriously wrong!SOLVED

<[hidden email]> wrote:
>> 31467,25832=PARAM_MT["NTv2", \PARAMETER["Latitude and longitude difference
>> file", "BETA2007.gsb"]]

<[hidden email]>:
> 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.



------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Yours with thanks, Robert Buckley System: Linux Ubuntu 10.04 Server / Tomcat6 / Geoserver 2.1.2 / GeoWebCache 1.2.6)
Reply | Threaded
Open this post in threaded view
|

Re: Display EPSG:4326 wms over EPSG:25832 GWCbaselayer seriously wrong!SOLVED

geowolf
On Thu, Oct 25, 2012 at 4:18 PM, Robert Buckley <[hidden email]> wrote:
Hi,

EPSG:4314 and EPSG:4258 are unknown to me

According to this ...


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


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


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: Display EPSG:4326 wms over EPSG:25832 GWCbaselayer seriously wrong!SOLVED

robertdbuckley
In reply to this post by robertdbuckley
Ok,

Thanks for clearing that up.

But here comes the real question...How do I define the crs transformation between a 31467 and 25832 crs using BETA2007 and geoserver, and why did it cause geoserver to crash? 

It clearly states that we should use beta2007.gsb to create a transformation method between 31467 and 25832 with Ntv2?


Rob

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Yours with thanks, Robert Buckley System: Linux Ubuntu 10.04 Server / Tomcat6 / Geoserver 2.1.2 / GeoWebCache 1.2.6)
Reply | Threaded
Open this post in threaded view
|

Re: Display EPSG:4326 wms over EPSG:25832 GWCbaselayer seriously wrong!SOLVED

Oscar Fonts
Robert Buckley:

> How do I define the crs transformation
> between a 31467 and 25832 crs using BETA2007 and geoserver?

Just set a transform in geographic coordinates, and GeoServer
will find the path to convert from UTM to geographic and vice versa.

Have you tried this, and played with the reprojection console?

4314,4258=PARAM_MT["NTv2", PARAMETER["Latitude and longitude
difference file", "BETA2007.gsb"]]


And, if you needed to -or you didn't want GeoServer to pick any
transform step for you-, you could always define the whole transform
path, from end to end:

31467,25832=CONCAT_MT[INVERSE_MT[PARAM_MT["Transverse_Mercator",
      PARAMETER["semi_major", 6377397.155],
      PARAMETER["semi_minor", 6356078.962818189],
      PARAMETER["central_meridian", 9.0],
      PARAMETER["latitude_of_origin", 0.0],
      PARAMETER["scale_factor", 1.0],
      PARAMETER["false_easting", 3500000.0],
      PARAMETER["false_northing", 0.0]]],
  PARAM_MT["NTv2", PARAMETER["Latitude and longitude difference file",
"BETA2007.gsb"]],
  PARAM_MT["Transverse_Mercator",
    PARAMETER["semi_major", 6378137.0],
    PARAMETER["semi_minor", 6356752.314140356],
    PARAMETER["central_meridian", 9.0],
    PARAMETER["latitude_of_origin", 0.0],
    PARAMETER["scale_factor", 0.9996],
    PARAMETER["false_easting", 500000.0],
    PARAMETER["false_northing", 0.0]]]


Oscar.

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users