<html><head><base href="x-msg://118/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>OpenLayers can not reproject images.</div><div><br></div><div>So you need to use the Google Mercator projection for your WMS layer, so that your WMS reprojects instead.</div><div><br></div><div>Best regards,</div><div>Bart</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>--&nbsp;</div><div>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></div><div><br></div><div>Bart van den Eijnden</div><div>OSGIS</div><div><a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a></div></div></div></span></div></span></div></span></span>
</div>
<br><div><div>On Jun 28, 2011, at 3:32 PM, Severini Cristiano wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div lang="IT" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: Verdana, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; ">Hi,</span></span><span class="apple-converted-space"><span lang="EN-US" style="font-size: 10pt; font-family: Verdana, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: Verdana, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "><br><span class="apple-style-span">i’m trying to overlay my own WMS service on Google/OpenStreetMap but i’m getting problems.<o:p></o:p></span></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: Verdana, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; ">I set EPSG:3004 with Proj4js and works (I can see correct mouse’s coords)<o:p></o:p></span></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US" style="font-size: 10pt; font-family: Verdana, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "><br><span class="apple-style-span">var options = {</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">&nbsp; &nbsp;controls:[],</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">&nbsp; &nbsp;projection: new OpenLayers.Projection("EPSG:900913"),</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">&nbsp; &nbsp;displayProjection: new OpenLayers.Projection("EPSG:3004")</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">};</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">map = new OpenLayers.Map('map', options);</span><span class="apple-converted-space">&nbsp;</span><br><br><span class="apple-style-span">osm &nbsp;= new OpenLayers.Layer.OSM("Open Street Map");</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">map.addLayer(osm);</span><span class="apple-converted-space">&nbsp;</span><br><br><span class="apple-style-span">lines = new OpenLayers.Layer.WMS("MY LAYER",</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">&nbsp; &nbsp;"</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: Verdana, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "><a href="http://myserver/wms/service.asp" target="_top" style="color: blue; text-decoration: underline; "><span lang="EN-US">http://myserver/wms/service.asp</span></a></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: Verdana, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; ">",</span></span><span class="apple-converted-space"><span lang="EN-US" style="font-size: 10pt; font-family: Verdana, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: Verdana, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "><br><span class="apple-style-span">&nbsp; &nbsp;{</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">&nbsp; &nbsp; &nbsp; layers: 'lines',</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">&nbsp; &nbsp; &nbsp; transparent: 'true'</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">&nbsp; &nbsp;},</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">&nbsp; &nbsp;{</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">&nbsp; &nbsp; &nbsp; singleTile: true,</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">&nbsp; &nbsp; &nbsp; units: 'meters',</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">&nbsp; &nbsp; &nbsp; projection: new OpenLayers.Projection("EPSG:3004"),</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">&nbsp; &nbsp;}</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">);</span><span class="apple-converted-space">&nbsp;</span><br><span class="apple-style-span">map.addLayer(lines);</span><span class="apple-converted-space">&nbsp;</span><br><br><span class="apple-style-span">My lines are displayed over Greece.</span><br></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: Verdana, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; ">I guess the issue is on the request.<span class="Apple-converted-space">&nbsp;</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: Verdana, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; ">The requests is done with SRS and BBOX in EPSG:900913</span></span><span class="apple-converted-space"><span lang="EN-US" style="font-size: 10pt; font-family: Verdana, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: Verdana, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "><br><br><span class="apple-style-span">Any solution?</span><br><span class="apple-style-span">TIA<o:p></o:p></span></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: Verdana, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "><o:p>&nbsp;</o:p></span></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: Verdana, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; ">crino</span></span><span lang="EN-US" style="color: rgb(31, 73, 125); "><o:p></o:p></span></div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.osgeo.org" style="color: blue; text-decoration: underline; ">Users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" style="color: blue; text-decoration: underline; ">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br></div></span></blockquote></div><br></div></body></html>