Ignore:
Timestamp:
2012-03-10T16:18:23+01:00 (12 years ago)
Author:
bastiK
Message:

Proj parameter refactoring (see #7495)

File:
1 edited

Legend:

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

    r4285 r5066  
    22package org.openstreetmap.josm.data.projection.proj;
    33
     4import org.openstreetmap.josm.data.projection.ProjectionConfigurationException;
     5
    46/**
    57 * A projection (in the narrow sense).
    6  * 
     8 *
    79 * Converts lat/lon the east/north and the other way around.
    8  * 
    9  * Datum conversion, false easting / northing, origin of longitude 
     10 *
     11 * Datum conversion, false easting / northing, origin of longitude
    1012 * and general scale factor is already applied when the projection is invoked.
    11  * 
     13 *
    1214 * Lat/lon is not in degrees, but in radians (unlike other parts of JOSM).
    13  * Additional parameters in the constructor arguments are usually still in 
    14  * degrees. So to avoid confusion, you can follow the convention, that 
     15 * Additional parameters in the constructor arguments are usually still in
     16 * degrees. So to avoid confusion, you can follow the convention, that
    1517 * coordinates in radians are called lat_rad/lon_rad or phi/lambda.
    16  * 
    17  * East/north values are not in meters, but in meters divided by the semi major 
    18  * axis of the ellipsoid (earth radius). (Usually this is what you get anyway, 
     18 *
     19 * East/north values are not in meters, but in meters divided by the semi major
     20 * axis of the ellipsoid (earth radius). (Usually this is what you get anyway,
    1921 * unless you multiply by 'a' somehow implicitly or explicitly.)
    2022 *
     
    2830    /**
    2931     * The Proj.4 identifier.
    30      * 
     32     *
    3133     * (as reported by cs2cs -lp)
    3234     * If no id exists, return null.
    3335     */
    3436    String getProj4Id();
    35    
     37
     38    /**
     39     * Initialize the projection using the provided parameters.
     40     *
     41     * @throws ProjectionConfigurationException in case parameters are not suitable
     42     */
     43    void initialize(ProjParameters params) throws ProjectionConfigurationException;
     44
    3645    /**
    3746     * Convert lat/lon to east/north.
    38      * 
     47     *
    3948     * @param lat_rad the latitude in radians
    4049     * @param lon_rad the longitude in radians
     
    4352     */
    4453    double[] project(double lat_rad, double lon_rad);
    45    
     54
    4655    /**
    4756     * Convert east/north to lat/lon.
    48      * 
     57     *
    4958     * @param east east value in meters, divided by the semi major axis of the ellipsoid
    5059     * @param north north value in meters, divided by the semi major axis of the ellipsoid
     
    5261     */
    5362    double[] invproject(double east, double north);
     63
    5464}
Note: See TracChangeset for help on using the changeset viewer.