[GIS] BBOX and Projections of WMS services in Geoserver

geoservergoogle mapsoverlayrasterwms

we have tried to overlay a raster layer on Google map and have some difficulties to align the raster images onto the base map. When it is on the overview (Zoom level 1), it looks like this:

Overview of the raster

On a lower resolution, you could still spot the mis-alignment in high altitude area such as North Europe and Canada:

Zoom in

BUT when we zoom into the highest level, the problem has gone:

enter image description here

We have tried these approaches to address this problem:

  1. Change the projection of the raster layer on Geoserver from WGS 84 to Web Mercator, does not even shown the image on Google Map.
  2. We try to change the bbox option in the request but it returns strange results that we cannot even zoom in.

Do you have any idea why this happen? What can we do to address this problem?

Thank you very much!

Best Answer

try setting spericalmercator:true in the openlayers map.

Related Question