Changeset 17248 in josm


Ignore:
Timestamp:
2020-10-21T23:12:51+02:00 (6 weeks ago)
Author:
Don-vip
Message:

fix #19976 - add SWEREF99 TM (EPSG:3006) in default projection choices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java

    r17245 r17248  
    238238
    239239        /**
    240          * SWEREF99 13 30 projection. Based on data from spatialreference.org.
    241          * http://spatialreference.org/ref/epsg/3008/
    242          *
    243          * @author Hanno Hecker
    244          */
     240         * SWEREF99 projections. Official coordinate system in Sweden.
     241         */
     242        registerProjectionChoice(tr("SWEREF99 TM / EPSG:3006 (Sweden)"), "core:sweref99tm", 3006);  // SE
    245243        registerProjectionChoice(tr("SWEREF99 13 30 / EPSG:3008 (Sweden)"), "core:sweref99", 3008); // SE
    246244
     
    256254    }
    257255
     256    /**
     257     * Registers a new projection choice.
     258     * @param c projection choice
     259     */
    258260    public static void registerProjectionChoice(ProjectionChoice c) {
    259261        projectionChoices.add(c);
     
    286288    }
    287289
     290    /**
     291     * Returns the list of projection choices.
     292     * @return the list of projection choices
     293     */
    288294    public static List<ProjectionChoice> getProjectionChoices() {
    289295        return Collections.unmodifiableList(projectionChoices);
     
    342348    private static final GBC projSubPrefPanelGBC = GBC.std().fill(GBC.BOTH).weight(1.0, 1.0);
    343349
     350    /**
     351     * Constructs a new {@code ProjectionPreference}.
     352     */
    344353    public ProjectionPreference() {
    345354        super(/* ICON(preferences/) */ "map", tr("Map Projection"), tr("Map Projection"));
     
    450459    }
    451460
     461    /**
     462     * Set default projection.
     463     */
    452464    public static void setProjection() {
    453465        setProjection(PROP_PROJECTION_DEFAULT.get(), PROP_SUB_PROJECTION_DEFAULT.get(), false);
Note: See TracChangeset for help on using the changeset viewer.