<div dir="ltr"><p>See if this helps, </p>
<p>I have a wms layer(in epsg 4326) over the google base layer<br>I use GetFeatureInfo to get the data nd it works fine for me</p>
<p>var extent = new OpenLayers.Bounds(-4037508.34,-20037508.34,20037508.34,20037508.34);<br>var map_options = {'maxExtent': extent,numZoomLevels:6,restrictedExtent: extent,projection: new OpenLayers.Projection("EPSG:900913"),displayProjection: new OpenLayers.Projection("EPSG:4326")}<br>
var coverage_options = {isBaseLayer: false, opacity: 0.4,displayInLayerSwitcher: true};<br>var google_Poptions = {isBaseLayer: true, displayInLayerSwitcher: true,sphericalMercator: true ,reproject: true,type: G_PHYSICAL_MAP};</p>
<p>// Inside init<br>map = new OpenLayers.Map( 'map', map_options);<br>google = new OpenLayers.Layer.Google("Google Physical",google_Poptions);<br> region1_layer = new OpenLayers.Layer.WMS( "Region1 ",<br>
"http://" + server + "/cgi-bin/mapserv.exe?",<br> {map:'../htdocs/mgt/c1.map',layers: "region1",transparent: "TRUE", format: "image/png" ,counter1:0},<br>
coverage_options);</p>
<div>map.addLayers([google,region1_layer]);<br></div>
<div> </div>
<div>Thanks<br><br></div>
<div class="gmail_quote">On Tue, Jan 19, 2010 at 12:37 PM, Christoph Ratke [via OSGeo.org] <span dir="ltr"><<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4418896&i=0" target="_top" rel="nofollow">[hidden email]</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi all, <br><br>I am trying to realize a GetFeature request on EPSG:4326 WFS 1.0.0 data <br>over a EPSG:900913 projected Google base layer. As another restriction I <br>
have to use the http GET method. <br><br>I got the WFS overlay working like this: <br> var p = new OpenLayers.Protocol.HTTP({ <br> url: "wfsURL", <br> ...some more params... <br> format: new OpenLayers.Format.GML( <br>
{ <br> internalProjection:mapProjection, <br> externalProjection:displayProjection <br> }) <br> }); <br> var l = new OpenLayers.Layer.Vector("GML", <br> {strategies: [new OpenLayers.Strategy.Fixed({preload:false})], <br>
protocol: p <br> }); <br>Maybe the WFS Layer is looking a bit strange but it was the only way to <br>get it up and running. Anyway using the getFeatureControl is not working <br>because the bounding box is not reprojected. It is requested in <br>
EPSG:900913 but I need a EPSG:4326 BBox). <br>I was not able to reproject the BBox myself. How could I do so? Do you <br>have any suggestions? <br><br>Thank you in advance. <br>Christoph <br><br><br><br><br><br>_______________________________________________ <br>
Users mailing list <br><a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4418761&i=0" rel="nofollow" target="_blank" link="external">[hidden email]</a> <br><a href="http://openlayers.org/mailman/listinfo/users" rel="nofollow" target="_blank" link="external">http://openlayers.org/mailman/listinfo/users</a><br>
</blockquote></div><br></div>
<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/SelectFeature-on-Overlapping-Layers-tp4412919p4418896.html">Re: [OpenLayers-Users] GetFeature and reprojection GET Method</a><br>
Sent from the <a href="http://n2.nabble.com/OpenLayers-Users-f1822463.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br>