<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>R: [OpenLayers-Users] OpenLayers and WMS (EPSG:3004)</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>ok, so my WMS needs to expose data/images in EPSG:900913, right?<BR>
<BR>
<BR>
-----Messaggio originale-----<BR>
Da: Bart van den Eijnden [<A HREF="mailto:bartvde@osgis.nl">mailto:bartvde@osgis.nl</A>]<BR>
Inviato: mar 28/06/2011 15.49<BR>
A: Severini Cristiano<BR>
Cc: openlayers-users@lists.osgeo.org<BR>
Oggetto: Re: [OpenLayers-Users] OpenLayers and WMS (EPSG:3004)<BR>
<BR>
Hi,<BR>
<BR>
OpenLayers can not reproject images.<BR>
<BR>
So you need to use the Google Mercator projection for your WMS layer, so that your WMS reprojects instead.<BR>
<BR>
Best regards,<BR>
Bart<BR>
<BR>
--<BR>
Looking for flexible support on OpenLayers or GeoExt? Please check out <A HREF="http://www.osgis.nl/support.html">http://www.osgis.nl/support.html</A><BR>
<BR>
Bart van den Eijnden<BR>
OSGIS<BR>
bartvde@osgis.nl<BR>
<BR>
On Jun 28, 2011, at 3:32 PM, Severini Cristiano wrote:<BR>
<BR>
> Hi,<BR>
> i'm trying to overlay my own WMS service on Google/OpenStreetMap but i'm getting problems.<BR>
> I set EPSG:3004 with Proj4js and works (I can see correct mouse's coords)<BR>
><BR>
> var options = {<BR>
> controls:[],<BR>
> projection: new OpenLayers.Projection("EPSG:900913"),<BR>
> displayProjection: new OpenLayers.Projection("EPSG:3004")<BR>
> };<BR>
> map = new OpenLayers.Map('map', options);<BR>
><BR>
> osm = new OpenLayers.Layer.OSM("Open Street Map");<BR>
> map.addLayer(osm);<BR>
><BR>
> lines = new OpenLayers.Layer.WMS("MY LAYER",<BR>
> "<A HREF="http://myserver/wms/service.asp">http://myserver/wms/service.asp</A>",<BR>
> {<BR>
> layers: 'lines',<BR>
> transparent: 'true'<BR>
> },<BR>
> {<BR>
> singleTile: true,<BR>
> units: 'meters',<BR>
> projection: new OpenLayers.Projection("EPSG:3004"),<BR>
> }<BR>
> );<BR>
> map.addLayer(lines);<BR>
><BR>
> My lines are displayed over Greece.<BR>
> I guess the issue is on the request. The requests is done with SRS and BBOX in EPSG:900913<BR>
><BR>
> Any solution?<BR>
> TIA<BR>
> <BR>
> crino<BR>
> _______________________________________________<BR>
> Users mailing list<BR>
> Users@lists.osgeo.org<BR>
> <A HREF="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</A><BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>