Hi Jaishankar,<div><br></div><div>I don&#39;t know geoserver well, so I can&#39;t help you there. There should be plenty of examples if you google for the the proj4.js library.</div><div>Here&#39;s the link to the OL documentation, which has a basic example. <a href="http://docs.openlayers.org/library/spherical_mercator.html?highlight=reprojection#working-with-projected-coordinates">http://docs.openlayers.org/library/spherical_mercator.html?highlight=reprojection#working-with-projected-coordinates</a></div>
<div><br><div><br><div class="gmail_quote">On Thu, Jul 28, 2011 at 6:46 AM, Jaishankar Madamshetty <span dir="ltr">&lt;<a href="mailto:Jaishankar.Madamshetty@infotech-enterprises.com">Jaishankar.Madamshetty@infotech-enterprises.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Hi Nicholas,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">I have setup my WMS layers in Geoserver. Please can you send me the sample code on how to do it in OL, otherwise please send me any links explaining this process?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Regards,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Jaishankar<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Nicholas Efremov-Kendall<br>
<b>Sent:</b> Thursday, July 28, 2011 4:51 PM<br><b>To:</b> Jaishankar Madamshetty<br><b>Cc:</b> <a href="mailto:openlayers-users@lists.osgeo.org" target="_blank">openlayers-users@lists.osgeo.org</a><br><b>Subject:</b> Re: [OpenLayers-Users] overlay google map<u></u><u></u></span></p>
<div><div></div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Hi,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I don&#39;t know what you&#39;re using to set up the WMS, but you can use ogr2ogr to reproject the raw data, or tinker with proj4.js to do it in OL.<u></u><u></u></p>
</div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p><div><p class="MsoNormal">On Thu, Jul 28, 2011 at 6:19 AM, Nicholas Efremov-Kendall &lt;<a href="mailto:n.e.kendall@gmail.com" target="_blank">n.e.kendall@gmail.com</a>&gt; wrote:<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">You have to reproject your WMS layers to the webmercator, OL only supports EPSG 900913, and 4326, so your WMS wouldn&#39;t show correctly unless you were using the Proj4.js<u></u><u></u></p>
<div><div><div><p class="MsoNormal">On Thu, Jul 28, 2011 at 5:08 AM, Jaishankar Madamshetty &lt;<a href="mailto:Jaishankar.Madamshetty@infotech-enterprises.com" target="_blank">Jaishankar.Madamshetty@infotech-enterprises.com</a>&gt; wrote:<u></u><u></u></p>
</div></div><blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><div><div><div><p class="MsoNormal">Hi list,<u></u><u></u></p><p class="MsoNormal">
 <u></u><u></u></p><p class="MsoNormal">I wanted to set Google map as my base layer. My WMS layers are configured with EPSG: 32743. When I add Google map as given in the Open Layers example, it showing Google map perfectly, but I am unable to find my WMS layers Data. Even I tried with CQL filter on feature ID, but unable to locate any of the feature from my WMS data. I think I need to re-project my data to match with the Google map projections. Please can anyone let me know how to do it? And one more query, how to set the zoomtoMaxExtent property such that the screen should fit with my WMS layers extent with background Google map (I do not want to set the Google map bounding box) <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Thanks &amp; Regards,<u></u><u></u></p><p class="MsoNormal">Jaishankar<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p><div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center"></div><p class="MsoNormal"><span style="font-size:7.5pt;color:gray">DISCLAIMER:<br><br>This email may contain confidential information and is intended only for the use of the specific individual(s) to which it is addressed. If you are not the intended recipient of this email, you are hereby notified that any unauthorized use, dissemination or copying of this email or the information contained in it or attached to it is strictly prohibited. If you received this message in error, please immediately notify the sender at Infotech or <a href="mailto:Mail.Admin@infotech-enterprises.com" target="_blank">Mail.Admin@infotech-enterprises.com</a> and delete the original message.</span><u></u><u></u></p>
</div><p class="MsoNormal"><u></u> <u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt">_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><u></u><u></u></p></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div>
<p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></blockquote></div><br></div></div>