mapserver and wms 1.3.0

Oct 19, 2010 at 1:53 PM


i want to know, if there will be some change on sharpmap to support the call to the new coordinate system supported by mapserver with the wms 1.3.0 or if there is a way to change the axis order of the espg betwen 4000 to 5000


The most notable changes introduced in WMS 1.3.0 are the:

  • the axis changes
  • the introduction of new coordinate reference systems
  • the use of CRS parameter (instead of SRS)

The axis order in previous versions of the WMS specifications was to always use easting (x or lon ) and northing (y or lat). WMS 1.3.0 specifies that, depending on the particular CRS, the x axis may or may not be oriented West-to-East, and the y axis may or may not be oriented South-to-North. The WMS portrayal operation shall account for axis order. This affects some of the EPSG codes that were commonly used such as ESPG:4326. The current implementation makes sure that coordinates passed to the server (as part of the GetMap BBOX parameter) as well as those advertised in the capabilities document reflect the inverse axe orders for EPSG codes between 4000 and 5000.

In addition, the WMS 1.3.0 defines a series of new coordinate system. These are the once that are currently supported in MapServer:

  • CRS:84 (WGS 84 longitude-latitude)
  • CRS:83 (NAD83 longitude-latitude)
  • CRS:27 (NAD27 longitude-latitude)
  • AUTO2:420001 (WGS 84 / Auto UTM )
  • AUTO2:420002 (WGS 84 / Auto Tr. Mercator)
  • AUTO2:420003 (WGS 84 / Auto Orthographic)
  • AUTO2:420004 (WGS 84 / Auto Equirectangular)
  • AUTO2:420005 (WGS 84 / Auto Mollweide)

Oct 19, 2010 at 2:59 PM
Edited Oct 19, 2010 at 3:01 PM

i have make this little update to the WmsLayer.cs

at line 543 i have change that

if (wmsClient.WmsVersion == "1.3.0")
                if (SRID == 84)
                    strReq.AppendFormat("&CRS=CRS:{0}", SRID);
                    strReq.AppendFormat("&CRS=EPSG:{0}", SRID);
                strReq.AppendFormat("&SRS=EPSG:{0}", SRID);








but there is surly a better to support that