Index: applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSGrabber.java
===================================================================
--- applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSGrabber.java	(revision 13599)
+++ applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSGrabber.java	(revision 13600)
@@ -1,3 +1,5 @@
 package wmsplugin;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.awt.image.BufferedImage;
@@ -14,6 +16,9 @@
 import java.text.NumberFormat;
 import java.util.Locale;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
 
 import javax.imageio.ImageIO;
+import javax.swing.JOptionPane;
 
 import org.openstreetmap.josm.Main;
@@ -26,4 +31,5 @@
 public class WMSGrabber extends Grabber {
     protected String baseURL;
+    private static Boolean shownWarning = false;
 
     WMSGrabber(String baseURL, Bounds b, Projection proj,
@@ -71,6 +77,36 @@
             + latLonFormat.format(e) + ","
             + latLonFormat.format(n)
+            + getProjection(baseURL, false)
             + "&width=" + wi + "&height=" + ht;
         return new URL(str.replace(" ", "%20"));
+    }
+
+    static public String getProjection(String baseURL, Boolean warn)
+    {
+        String projname = Main.proj.toCode();
+        if(projname.equals("EPSG:3785")) // don't use mercator code
+            projname = "EPSG:4326";
+        String res = "";
+        try
+        {
+            Matcher m = Pattern.compile(".*srs=([a-z0-9:]+).*").matcher(baseURL.toLowerCase());
+            if(m.matches())
+            {
+                projname = projname.toLowerCase();
+                if(!projname.equals(m.group(1)) && warn)
+                {
+                    JOptionPane.showMessageDialog(Main.parent,
+                    tr("The projection ''{0}'' in URL and current projection ''{1}'' mismatch.\n"
+                    + "This may lead to wrong coordinates.\n",
+                    m.group(1), projname));
+                }
+            }
+            else
+                res ="&srs="+projname;
+        }
+        catch(Exception e)
+        {
+        }
+        return res;
     }
 
Index: applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java
===================================================================
--- applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java	(revision 13599)
+++ applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java	(revision 13600)
@@ -78,4 +78,5 @@
         initializeImages();
         this.baseURL = baseURL;
+        WMSGrabber.getProjection(baseURL, true);
         mv = Main.map.mapView;
         getPPD();
