Opened 12 years ago
Last modified 12 years ago
#9724 closed defect
User-defined WMS SRS setting for custom projections — at Version 1
| Reported by: | anonymous | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | 14.02 |
| Component: | Core | Version: | latest |
| Keywords: | Cc: |
Description (last modified by )
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:
-
src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java
187 187 s.append(" "+tr("Built-in:")+" "); 188 188 s.append(listKeys(Projections.nadgrids)+"<br>"); 189 189 s.append("<b>+bounds=</b>minlon,minlat,maxlon,maxlat - <i>"+tr("Projection bounds (in degrees)")+"</i><br>"); 190 s.append("<b>+wmssrs=</b>EPSG:123456 - <i>"+tr("WMS SRS (EPSG code)")+"</i><br>"); 190 191 191 192 return new HtmlPanel(s.toString()); 192 193 } -
src/org/openstreetmap/josm/data/projection/CustomProjection.java
68 68 no_defs("no_defs", false), 69 69 init("init", true), 70 70 // JOSM extension, not present in PROJ.4 71 wmssrs("wmssrs", true), 71 72 bounds("bounds", true); 72 73 73 74 public String key; … … 151 152 if (s != null) { 152 153 this.bounds = parseBounds(s); 153 154 } 155 s = parameters.get(Param.wmssrs.key); 156 if (s != null) { 157 this.code = s; 158 } 154 159 } 155 160 }
Note:
See TracTickets
for help on using tickets.


