<!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>
&gt; Hi,<BR>
&gt; i'm trying to overlay my own WMS service on Google/OpenStreetMap but i'm getting problems.<BR>
&gt; I set EPSG:3004 with Proj4js and works (I can see correct mouse's coords)<BR>
&gt;<BR>
&gt; var options = {<BR>
&gt;&nbsp;&nbsp;&nbsp; controls:[],<BR>
&gt;&nbsp;&nbsp;&nbsp; projection: new OpenLayers.Projection(&quot;EPSG:900913&quot;),<BR>
&gt;&nbsp;&nbsp;&nbsp; displayProjection: new OpenLayers.Projection(&quot;EPSG:3004&quot;)<BR>
&gt; };<BR>
&gt; map = new OpenLayers.Map('map', options);<BR>
&gt;<BR>
&gt; osm&nbsp; = new OpenLayers.Layer.OSM(&quot;Open Street Map&quot;);<BR>
&gt; map.addLayer(osm);<BR>
&gt;<BR>
&gt; lines = new OpenLayers.Layer.WMS(&quot;MY LAYER&quot;,<BR>
&gt;&nbsp;&nbsp;&nbsp; &quot;<A HREF="http://myserver/wms/service.asp">http://myserver/wms/service.asp</A>&quot;,<BR>
&gt;&nbsp;&nbsp;&nbsp; {<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layers: 'lines',<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; transparent: 'true'<BR>
&gt;&nbsp;&nbsp;&nbsp; },<BR>
&gt;&nbsp;&nbsp;&nbsp; {<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; singleTile: true,<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; units: 'meters',<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; projection: new OpenLayers.Projection(&quot;EPSG:3004&quot;),<BR>
&gt;&nbsp;&nbsp;&nbsp; }<BR>
&gt; );<BR>
&gt; map.addLayer(lines);<BR>
&gt;<BR>
&gt; My lines are displayed over Greece.<BR>
&gt; I guess the issue is on the request. The requests is done with SRS and BBOX in EPSG:900913<BR>
&gt;<BR>
&gt; Any solution?<BR>
&gt; TIA<BR>
&gt;&nbsp;<BR>
&gt; crino<BR>
&gt; _______________________________________________<BR>
&gt; Users mailing list<BR>
&gt; Users@lists.osgeo.org<BR>
&gt; <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>