var layer = new OpenLayers.Layer.WMS(name, params, options) the param SRS is set by OpenLayers using the map projection. But you could overwrite the projection, if you set in the options projection:"EPSG:102113". // WMS LAYER: National Elevation Dataset - EROS var layer = new OpenLayers.Layer.WMS( "National Elevation Dataset - EROS", "http://imsref.cr.usgs.gov:80/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ele v_NED?", {layers: "NED.CONUS_NED,NED.PR_NED", TRANSPARENT:true, format: "image/png"}, {isBaseLayer: false, visibility: true, group:"other", opacity: 0.75, meta:true, projection:"EPSG:102113"}); map.addLayer(layer); Also the projection is declared with the prefix EPSG. srs:EPSG:102113 instead srs:102113. Arnd
_____ Von: Doug Kunzman [mailto:[email protected]] Gesendet: Freitag, 2. November 2012 23:13 An: [email protected] Betreff: Re: AW: [OpenLayers-Users] WMS Arnd - Something weird is happening with the request because this is my code to setup layer in openlayers. This is from firebug so I'm sure its not a cache issue. // WMS LAYER: National Elevation Dataset - EROS var layer = new OpenLayers.Layer.WMS( "National Elevation Dataset - EROS", " <http://imsref.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Elev_N ED?> http://imsref.cr.usgs.gov:80/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Elev _NED?", {layers: "NED.CONUS_NED,NED.PR_NED", srs: "102113", TRANSPARENT:true, format: "image/png"}, {isBaseLayer: false, visibility: false, group:"other", opacity: 0.75, meta:true}); map.addLayer(layer); And this is the request from firebug BBOX -11075419.648867,4569099.8021387,-11065635.709248,4578883.7417578 FORMAT image/png HEIGHT 256 LAYERS NED.CONUS_NED,NED.PR_NED REQUEST GetMap SERVICE WMS SRS EPSG:3857 STYLES TRANSPARENT TRUE VERSION 1.1.1 WIDTH 256 I think its a open layers issue but the bbox parameters look like 102113. Douglas Kunzman 12201 Sunrise Valley Drive Reston, VA 20192 Phone: 703 648-4234 [email protected] From: "Arnd Wippermann" <[email protected]> To: "'Doug Kunzman'" <[email protected]> Cc: <[email protected]> Date: 11/02/2012 06:00 PM Subject: AW: [OpenLayers-Users] WMS _____ EPSG:3857 is not supported by the wms, see <http://ims.cr.usgs.gov/WMS_Capabilities/USGS_EDC_Elev_NED/capabilities_1_1_ 1.xml> http://ims.cr.usgs.gov/WMS_Capabilities/USGS_EDC_Elev_NED/capabilities_1_1_1 .xml but you can use EPSG:102113 instead. NED above Google using EPSG:102113 for request <http://gis.ibbeck.de/OLClient/OLClient.asp?WMC=./data/WMC/USGS_EDC_Elev_NED _102113.wmc.xml> http://gis.ibbeck.de/OLClient/OLClient.asp?WMC=./data/WMC/USGS_EDC_Elev_NED_ 102113.wmc.xml Arnd _____ Von: [email protected] [ <mailto:[email protected]> mailto:[email protected]] Im Auftrag von Doug Kunzman Gesendet: Freitag, 2. November 2012 18:49 An: [email protected] Betreff: [OpenLayers-Users] WMS Hi - I trying to include the EROS data set as part of the National Map at USGS in an open Layers project. We are using a spherical Mercator projection "102113" which would be hard to change at this point. My requests work when they are in latitude and longitude but my requests fail when they are in spherical mecator. Is there any way to force open layers to make my request with reprojected parameters as latitude longitude rather than spherical Mercator? This isn't working BBOX -10018754.17,-1.862645149231e-9,-5009377.085,5009377.085 FORMAT image/png HEIGHT 256 LAYERS NED.CONUS_NED,NED.PR_NED REQUEST GetMap SERVICE WMS SRS EPSG:3857 STYLES VERSION 1.1.1 The end point of the service is at this location. <http://imsref.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Elev_N ED?> http://imsref.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Elev_NE D? Thanks, Douglas Kunzman
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
