Index: src/Common/SharpMap/Layers/WmsLayer.cs =================================================================== diff -u -r5fc71a385897af92ccb092f2f969b5709afab85a -r98a7464aa2f9a8163979b8a9d5ac617e412ba3a0 --- src/Common/SharpMap/Layers/WmsLayer.cs (.../WmsLayer.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) +++ src/Common/SharpMap/Layers/WmsLayer.cs (.../WmsLayer.cs) (revision 98a7464aa2f9a8163979b8a9d5ac617e412ba3a0) @@ -685,14 +685,7 @@ { throw new ApplicationException("Spatial reference system not set"); } - if (wmsClient.WmsVersion == "1.3.0") - { - strReq.AppendFormat("&CRS={0}", spatialReferenceSystem); - } - else - { - strReq.AppendFormat("&SRS={0}", spatialReferenceSystem); - } + strReq.AppendFormat(wmsClient.WmsVersion == "1.3.0" ? "&CRS={0}" : "&SRS={0}", spatialReferenceSystem); strReq.AppendFormat("&VERSION={0}", wmsClient.WmsVersion); strReq.Append("&Styles="); if (stylesList != null && stylesList.Count > 0)