[PATCH] User-defined WMS SRS setting for custom projections
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:
-
|
|
|
|
| 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 | } |
-
|
|
|
|
| 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 | } |
Change History
(4)
| Description: |
modified (diff)
|
| Summary: |
User-defined WMS SRS setting for custom projections → [PATCH] User-defined WMS SRS setting for custom projections
|
| Resolution: |
→ fixed
|
| Status: |
new → closed
|
In 6854/josm: