[OpenLayers-Users] Problem with Google Maps and WMS layer

Heiko Schröter schroete at iup.physik.uni-bremen.de
Tue Oct 27 03:22:56 EDT 2009


Am Dienstag 27 Oktober 2009 08:08:37 schrieb Sune Dogan, LIFA A/S:

As far as i understand your setup you are trying to reproject 'raster images' from the MapServer.
OpenLayer does not reproject 'raster images' on the client side.
Raster images have to reprojected first and can than be overlayed when in the right projection.

http://docs.openlayers.org/library/spherical_mercator.html

<snip>
Creating Spherical Mercator Raster Images¶
One of the reasons that the Spherical Mercator projection is so important is that it is the only projection which will allow for overlaying image data on top of commercial layers like Google Maps correctly. When using raster images, in the browser, it is not possible to reproject the images in the same way it might be in a ‘thick’ GIS client. Instead, all images must be in the same projection.
How to create Spherical Mercator projected tiles depends on the software you are using to generate your images. MapServer is covered in this document.
<snap>


Heiko


>       var pdkWMS =  new OpenLayers.Layer.WMS(
>             "http://kort.plansystem.dk/wms?servicename=wms&SRS=EPSG:25832&REQUEST=GetMap&exceptions=application/vnd.ogc.se_xml",
>                 format: 'image/png',
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091027/104a0fd4/attachment.html


More information about the Users mailing list