﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
9724	User-defined WMS SRS setting for custom projections	anonymous	team	"Custom Projection has no means to provide a setting for the user-defined WMS SRS,
so i have written this patch creating a +wmssrs=EPSG:123456 parameter:

Index: src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java
===================================================================
--- src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java   (Revision 6853)
+++ src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java   (Arbeitskopie)
@@ -187,6 +187,7 @@
             s.append(""&nbsp;&nbsp;&nbsp;&nbsp;""+tr(""Built-in:"")+"" "");
             s.append(listKeys(Projections.nadgrids)+""<br>"");
             s.append(""<b>+bounds=</b>minlon,minlat,maxlon,maxlat - <i>""+tr(""Projection bounds (in degrees)"")+""</i><br>"");
+            s.append(""<b>+wmssrs=</b>EPSG:123456 - <i>""+tr(""WMS SRS (EPSG code)"")+""</i><br>"");
 
             return new HtmlPanel(s.toString());
         }
Index: src/org/openstreetmap/josm/data/projection/CustomProjection.java
===================================================================
--- src/org/openstreetmap/josm/data/projection/CustomProjection.java    (Revision 6853)
+++ src/org/openstreetmap/josm/data/projection/CustomProjection.java    (Arbeitskopie)
@@ -68,6 +68,7 @@
         no_defs(""no_defs"", false),
         init(""init"", true),
         // JOSM extension, not present in PROJ.4
+        wmssrs(""wmssrs"", true),
         bounds(""bounds"", true);
 
         public String key;
@@ -151,6 +152,10 @@
             if (s != null) {
                 this.bounds = parseBounds(s);
             }
+            s = parameters.get(Param.wmssrs.key);
+            if (s != null) {
+                this.code = s;
+            }
         }
     }
"	defect	new	normal		Core	latest			
