How do I request a specific SRS when creating a wms layer?<div><br></div><div><br><div class="gmail_quote">On Fri, Aug 5, 2011 at 14:22, Jan Henrik Øverland <span dir="ltr">&lt;<a href="mailto:janhenrik.overland@gmail.com">janhenrik.overland@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi, my map is EPSG:900913 and running Google Maps nicely. The following WMS feed is served both as EPSG:4326 and EPSG:900913 (have a look at the WMS link in the table):<div>

<br></div><div><a href="http://iridl.ldeo.columbia.edu/SOURCES/.USGS/.LandDAAC/.MODIS/.1km/.8day/.version_005/.Aqua/.EAF/.Night/.LST/X+Y+fig-+colors+coasts+-fig+//LST/255./330./plotrange//T/3118./plotvalue/Y/1.5405659E-04/39.99557/plotrange//plotborder+72+psdef//plotaxislength+432+psdef//XOVY+null+psdef/" target="_blank">http://iridl.ldeo.columbia.edu/SOURCES/.USGS/.LandDAAC/.MODIS/.1km/.8day/.version_005/.Aqua/.EAF/.Night/.LST/X+Y+fig-+colors+coasts+-fig+//LST/255./330./plotrange//T/3118./plotvalue/Y/1.5405659E-04/39.99557/plotrange//plotborder+72+psdef//plotaxislength+432+psdef//XOVY+null+psdef/</a></div>


<div><br></div><div>When I do this:</div><div><br></div><div><div><div style="font-family:&#39;courier new&#39;, monospace">var wms = new OpenLayers.Layer.WMS(</div><div style="font-family:&#39;courier new&#39;, monospace">


    &quot;IRI&quot;,</div><div style="font-family:&#39;courier new&#39;, monospace">    &quot;<a href="http://iridl.ldeo.columbia.edu/SOURCES/.USGS/.LandDAAC/.MODIS/.1km/.8day/.version_005/.Aqua/.EAF/.Night/.LST/X+Y+fig-+colors+coasts+-fig+//LST/255./330./plotrange//T/3118./plotvalue/Y/1.5405659E-04/39.99557/plotrange//plotborder+72+psdef//plotaxislength+432+psdef//XOVY+null+psdef/wms.xml" target="_blank">http://iridl.ldeo.columbia.edu/SOURCES/.USGS/.LandDAAC/.MODIS/.1km/.8day/.version_005/.Aqua/.EAF/.Night/.LST/X+Y+fig-+colors+coasts+-fig+//LST/255./330./plotrange//T/3118./plotvalue/Y/1.5405659E-04/39.99557/plotrange//plotborder+72+psdef//plotaxislength+432+psdef//XOVY+null+psdef/wms.xml</a>&quot;,</div>


<div style="font-family:&#39;courier new&#39;, monospace">    {</div><div style="font-family:&#39;courier new&#39;, monospace">       layers: &quot;USGS LandDAAC MODIS 1km 8day version_005 Aqua EAF Night LST&quot;,</div>


<div style="font-family:&#39;courier new&#39;, monospace">    }</div><div style="font-family:&#39;courier new&#39;, monospace">);</div><div style="font-family:&#39;courier new&#39;, monospace"><br></div><div><font face="arial, helvetica, sans-serif">..I get a 4326 base layer. But I want it to work with my 900913 map so I add to the params object:</font></div>


</div></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><div><font face="&#39;courier new&#39;, monospace"><div>    {</div><div>       layers: &quot;USGS LandDAAC MODIS 1km 8day version_005 Aqua EAF Night LST&quot;,</div>


<div>       srs: &quot;EPSG:900913&quot;,</div><div>       bbox: &quot;-2000000,1,6900000,4400000&quot;</div><div>    }</div></font></div><div style="font-family:arial, helvetica, sans-serif"><br></div><div style="font-family:arial, helvetica, sans-serif">


but it does not work. The getFullRequestString() returns a string with the correct BBOX, but the SRS it still 4326.</div></div><div style="font-family:arial, helvetica, sans-serif"><br></div><div style="font-family:arial, helvetica, sans-serif">


To me it looks like only the first tile has 900913 and the rest (twenty-something) have 4326. What am I doing wrong?</div><div style="font-family:arial, helvetica, sans-serif"><br></div><font color="#888888"><div style="font-family:arial, helvetica, sans-serif">


Jan</div>
</font></blockquote></div><br></div>