id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
9724,[PATCH] 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:
{{{
#!patch
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("" ""+tr(""Built-in:"")+"" "");
s.append(listKeys(Projections.nadgrids)+""
"");
s.append(""+bounds=minlon,minlat,maxlon,maxlat - ""+tr(""Projection bounds (in degrees)"")+""
"");
+ s.append(""+wmssrs=EPSG:123456 - ""+tr(""WMS SRS (EPSG code)"")+""
"");
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,closed,normal,14.02,Core,latest,fixed,,