Opened 12 years ago

Last modified 12 years ago

#9724 closed defect

User-defined WMS SRS setting for custom projections — at Initial Version

Reported by: anonymous Owned by: team
Priority: normal Milestone: 14.02
Component: Core Version: latest
Keywords: Cc:

Description

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("    "+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;
+ }

}

}

Change History (0)

Note: See TracTickets for help on using tickets.