Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#9724 closed defect (fixed)

[PATCH] User-defined WMS SRS setting for custom projections

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    }

Attachments (0)

Change History (4)

comment:1 Changed 6 years ago by stoecker

Description: modified (diff)

comment:2 Changed 6 years ago by stoecker

Summary: User-defined WMS SRS setting for custom projections[PATCH] User-defined WMS SRS setting for custom projections

comment:3 Changed 6 years ago by bastiK

Resolution: fixed
Status: newclosed

In 6854/josm:

applied #9724 - User-defined WMS SRS setting for custom projections (patch by anonymous)

comment:4 Changed 6 years ago by Don-vip

Milestone: 14.02

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.