Ignore:
Timestamp:
2018-04-05T19:03:04+02:00 (6 years ago)
Author:
Don-vip
Message:

see #16129 - add new projections and support for new format of ESRI file

Location:
trunk/src/org/openstreetmap/josm/data/projection/proj
Files:
2 added
2 edited

Legend:

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

    r10748 r13598  
    155155    }
    156156
     157    /**
     158     * Tolerant asin that will just return the limits of its output range if the input is out of range
     159     * @param v the value whose arc sine is to be returned.
     160     * @return the arc sine of the argument.
     161     */
     162    protected final double aasin(double v) {
     163        double av = Math.abs(v);
     164        if (av >= 1.) {
     165            return (v < 0. ? -Math.PI / 2 : Math.PI / 2);
     166        }
     167        return Math.asin(v);
     168    }
     169
    157170    // Iteratively solve equation (7-9) from Snyder.
    158171    final double cphi2(final double ts) {
  • trunk/src/org/openstreetmap/josm/data/projection/proj/ProjParameters.java

    r9565 r13598  
    22package org.openstreetmap.josm.data.projection.proj;
    33
     4import org.openstreetmap.josm.data.projection.CustomProjection.Param;
    45import org.openstreetmap.josm.data.projection.Ellipsoid;
    56
    67/**
    78 * Parameters to initialize a Proj object.
     9 * @since 5066
    810 */
    911public class ProjParameters {
    1012
     13    /** {@code +ellps} */
    1114    public Ellipsoid ellps;
    1215
     16    /** {@link Param#lat_0} */
    1317    public Double lat0;
     18    /** {@link Param#lat_1} */
    1419    public Double lat1;
     20    /** {@link Param#lat_2} */
    1521    public Double lat2;
    1622
    1723    // Polar Stereographic and Mercator
     24    /** {@link Param#lat_ts} */
    1825    public Double lat_ts;
    1926
     27    // Azimuthal Equidistant
     28    /** {@link Param#lon_0} */
     29    public Double lon0;
     30
    2031    // Oblique Mercator
     32    /** {@link Param#lonc} */
    2133    public Double lonc;
     34    /** {@link Param#alpha} */
    2235    public Double alpha;
     36    /** {@link Param#gamma} */
    2337    public Double gamma;
     38    /** {@link Param#no_off} */
    2439    public Boolean no_off;
     40    /** {@link Param#lon_1} */
    2541    public Double lon1;
     42    /** {@link Param#lon_2} */
    2643    public Double lon2;
    2744}
Note: See TracChangeset for help on using the changeset viewer.