[OpenLayers-Users] Re: [Geoserver-users] Horizontal spatial shift and inconsistent behaviour when overlaying WMS and Google satellite

Andrea Aime andrea.aime at geo-solutions.it
Mon Aug 29 14:36:55 EDT 2011


On Mon, Aug 29, 2011 at 1:04 PM, Viola Anne <violaanne at gmail.com> wrote:
> Hello list,
> I am trying to overlay wms on google satellite, I have read a few articles
> on the same and finally what i have is
> ONE: the WMS layers overlaying vertically but there seems to be a spatial
> shift horizontally (to the right).
> TWO: the WMS does NOT overlay AT ALL at certain zoom levels, while at other
> zoom levels works as described in ONE. attached a screenshot of the shift
> i have downloaded proj4js folder and copied into openlayers folder then
> included the <script type='text/javascript'
> src="openlayers/proj4js/lib/proj4js-combined.js"></script> just before
> openlayers.js script. In geoserver i have set the SRS to EPSG:32737 and
> below is relevant piece of openlayers code and a screenshot of the wms &
> google overlay

Often this kind of shift is due to setting the wrong source projection for your
data. Maybe the data layer is based on the same projection, but on a different
ellipsoid (aka the datum)?


Cheers
Andrea


-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

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


More information about the Users mailing list