Changeset 14049 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2018-07-25T10:37:36+02:00 (6 years ago)
Author:
simon04
Message:

Specify +axis=neu for Austrian projections

This allows to use the following WMTS in JOSM:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java

    r13763 r14049  
    6565    protected Bounds bounds;
    6666    private double metersPerUnitWMTS;
     67    /**
     68     * Starting in PROJ 4.8.0, the {@code +axis} argument can be used to control the axis orientation of the coordinate system.
     69     * The default orientation is "easting, northing, up" but directions can be flipped, or axes flipped using
     70     * combinations of the axes in the {@code +axis} switch. The values are: {@code e} (Easting), {@code w} (Westing),
     71     * {@code n} (Northing), {@code s} (Southing), {@code u} (Up), {@code d} (Down);
     72     * Examples: {@code +axis=enu} (the default easting, northing, elevation), {@code +axis=neu} (northing, easting, up;
     73     * useful for "lat/long" geographic coordinates, or south orientated transverse mercator), {@code +axis=wnu}
     74     * (westing, northing, up - some planetary coordinate systems have "west positive" coordinate systems)
     75     * @apiNote https://proj4.org/usage/projections.html#axis-orientation
     76     */
    6777    private String axis = "enu"; // default axis orientation is East, North, Up
    6878
     
    725735    public boolean switchXY() {
    726736        // TODO: support for other axis orientation such as West South, and Up Down
     737        // +axis=neu
    727738        return this.axis.startsWith("ne");
    728739    }
Note: See TracChangeset for help on using the changeset viewer.