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 stoecker)

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

     
    187187            s.append("    "+tr("Built-in:")+" ");
    188188            s.append(listKeys(Projections.nadgrids)+"<br>");
    189189            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>");
    190191
    191192            return new HtmlPanel(s.toString());
    192193        }
  • src/org/openstreetmap/josm/data/projection/CustomProjection.java

     
    6868        no_defs("no_defs", false),
    6969        init("init", true),
    7070        // JOSM extension, not present in PROJ.4
     71        wmssrs("wmssrs", true),
    7172        bounds("bounds", true);
    7273
    7374        public String key;
     
    151152            if (s != null) {
    152153                this.bounds = parseBounds(s);
    153154            }
     155            s = parameters.get(Param.wmssrs.key);
     156            if (s != null) {
     157                this.code = s;
     158            }
    154159        }
    155160    }

Change History (1)

comment:1 by stoecker, 12 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.