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"><<a href="mailto:janhenrik.overland@gmail.com">janhenrik.overland@gmail.com</a>></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:'courier new', monospace">var wms = new OpenLayers.Layer.WMS(</div><div style="font-family:'courier new', monospace">
"IRI",</div><div style="font-family:'courier new', monospace"> "<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>",</div>
<div style="font-family:'courier new', monospace"> {</div><div style="font-family:'courier new', monospace"> layers: "USGS LandDAAC MODIS 1km 8day version_005 Aqua EAF Night LST",</div>
<div style="font-family:'courier new', monospace"> }</div><div style="font-family:'courier new', monospace">);</div><div style="font-family:'courier new', 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="'courier new', monospace"><div> {</div><div> layers: "USGS LandDAAC MODIS 1km 8day version_005 Aqua EAF Night LST",</div>
<div> srs: "EPSG:900913",</div><div> bbox: "-2000000,1,6900000,4400000"</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>