Ignore:
Timestamp:
2014-08-15T18:53:18+02:00 (5 years ago)
Author:
Don-vip
Message:

fix some Sonar issues

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

Legend:

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

    r6987 r7402  
    1111
    1212/**
    13  * the reference ellipsoids
     13 * Reference ellipsoids.
    1414 */
    1515public final class Ellipsoid {
     16
    1617    /**
    1718     * Clarke 1880 IGN (French national geographic institute)
    1819     */
    1920    public static final Ellipsoid clarkeIGN = Ellipsoid.create_a_b(6378249.2, 6356515.0);
    20     /**
    21      * Hayford's ellipsoid 1909 (ED50 system)
     21
     22    /**
     23     * Hayford's ellipsoid 1909 (ED50 system)<br>
    2224     * Proj.4 code: intl
    2325     */
    2426    public static final Ellipsoid hayford = Ellipsoid.create_a_rf(6378388.0, 297.0);
     27
    2528    /**
    2629     * GRS67 ellipsoid
    2730     */
    2831    public static final Ellipsoid GRS67 = Ellipsoid.create_a_rf(6378160.0, 298.247167472);
     32
    2933    /**
    3034     * GRS80 ellipsoid
     
    4650     */
    4751    public final double a;
     52
    4853    /**
    4954     * half short axis
    5055     */
    5156    public final double b;
     57
    5258    /**
    5359     * first eccentricity
    5460     */
    5561    public final double e;
     62
    5663    /**
    5764     * first eccentricity squared
     
    8693     * @param a semimajor radius of the ellipsoid axis (in meters)
    8794     * @param b semiminor radius of the ellipsoid axis (in meters)
     95     * @return the new ellipsoid
    8896     */
    8997    public static Ellipsoid create_a_b(double a, double b) {
     
    99107     * @param a semimajor radius of the ellipsoid axis (in meters)
    100108     * @param es first eccentricity squared
     109     * @return the new ellipsoid
    101110     */
    102111    public static Ellipsoid create_a_es(double a, double es) {
     
    112121     * @param a semimajor radius of the ellipsoid axis (in meters)
    113122     * @param f flattening ( = (a - b) / a)
     123     * @return the new ellipsoid
    114124     */
    115125    public static Ellipsoid create_a_f(double a, double f) {
     
    126136     * @param a semimajor radius of the ellipsoid axis (in meters)
    127137     * @param rf inverse flattening
     138     * @return the new ellipsoid
    128139     */
    129140    public static Ellipsoid create_a_rf(double a, double rf) {
     
    217228    }
    218229
    219     /*
     230    /**
    220231     * Returns geographic latitude of isometric latitude of first eccentricity (e)
     232     * and epsilon precision
     233     * @return geographic latitude of isometric latitude of first eccentricity (e)
    221234     * and epsilon precision
    222235     */
  • trunk/src/org/openstreetmap/josm/data/projection/datum/Datum.java

    r6069 r7402  
    1818
    1919    /**
    20      * @return the Proj.4 identifier
    21      * (as reported by cs2cs -ld)
     20     * Replies the Proj.4 identifier.
     21     * @return the Proj.4 identifier (as reported by cs2cs -ld)
    2222     * If no id exists, return null.
    2323     */
Note: See TracChangeset for help on using the changeset viewer.