org.openstreetmap.josm.data.projection.proj
Class LambertConformalConic

java.lang.Object
  extended by org.openstreetmap.josm.data.projection.proj.LambertConformalConic
All Implemented Interfaces:
Proj

public class LambertConformalConic
extends java.lang.Object
implements Proj

Implementation of the Lambert Conformal Conic projection.


Nested Class Summary
static class LambertConformalConic.Parameters
           
static class LambertConformalConic.Parameters1SP
           
static class LambertConformalConic.Parameters2SP
           
 
Field Summary
protected  double e
           
protected  Ellipsoid ellps
           
protected static double epsilon
          precision in iterative schema
protected  double F
          projection factor
protected  double n
          projection exponent
private  LambertConformalConic.Parameters params
           
protected  double r0
          radius of the parallel of latitude of the false origin (2SP) or at natural origin (1SP)
 
Constructor Summary
LambertConformalConic()
           
 
Method Summary
 java.lang.String getName()
          A Human readable name of this projection.
 LambertConformalConic.Parameters getParameters()
           
 java.lang.String getProj4Id()
          The Proj.4 identifier.
 void initialize(ProjParameters params)
          Initialize the projection using the provided parameters.
private  void initialize1SP(double lat_0)
          Initialize for LCC with 1 standard parallel.
private  void initialize2SP(double lat_0, double lat_1, double lat_2)
          Initialize for LCC with 2 standard parallels.
 double[] invproject(double east, double north)
          Convert east/north to lat/lon.
protected  double m(double lat_rad)
          auxiliary function m
 double[] project(double phi, double lambda)
          Convert lat/lon to east/north.
protected  double t(double lat_rad)
          auxiliary function t
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ellps

protected Ellipsoid ellps

e

protected double e

params

private LambertConformalConic.Parameters params

n

protected double n
projection exponent


F

protected double F
projection factor


r0

protected double r0
radius of the parallel of latitude of the false origin (2SP) or at natural origin (1SP)


epsilon

protected static final double epsilon
precision in iterative schema

See Also:
Constant Field Values
Constructor Detail

LambertConformalConic

public LambertConformalConic()
Method Detail

initialize

public void initialize(ProjParameters params)
                throws ProjectionConfigurationException
Description copied from interface: Proj
Initialize the projection using the provided parameters.

Specified by:
initialize in interface Proj
Throws:
ProjectionConfigurationException - in case parameters are not suitable

initialize2SP

private void initialize2SP(double lat_0,
                           double lat_1,
                           double lat_2)
Initialize for LCC with 2 standard parallels.

Parameters:
lat_0 - latitude of false origin (in degrees)
lat_1 - latitude of first standard parallel (in degrees)
lat_2 - latitude of second standard parallel (in degrees)

initialize1SP

private void initialize1SP(double lat_0)
Initialize for LCC with 1 standard parallel.

Parameters:
lat_0 - latitude of natural origin (in degrees)

t

protected double t(double lat_rad)
auxiliary function t


m

protected double m(double lat_rad)
auxiliary function m


getName

public java.lang.String getName()
Description copied from interface: Proj
A Human readable name of this projection.

Specified by:
getName in interface Proj

getProj4Id

public java.lang.String getProj4Id()
Description copied from interface: Proj
The Proj.4 identifier. (as reported by cs2cs -lp) If no id exists, return null.

Specified by:
getProj4Id in interface Proj

project

public double[] project(double phi,
                        double lambda)
Description copied from interface: Proj
Convert lat/lon to east/north.

Specified by:
project in interface Proj
Parameters:
phi - the latitude in radians
lambda - the longitude in radians
Returns:
array of length 2, containing east and north value in meters, divided by the semi major axis of the ellipsoid.

invproject

public double[] invproject(double east,
                           double north)
Description copied from interface: Proj
Convert east/north to lat/lon.

Specified by:
invproject in interface Proj
Parameters:
east - east value in meters, divided by the semi major axis of the ellipsoid
north - north value in meters, divided by the semi major axis of the ellipsoid
Returns:
array of length 2, containing lat and lon in radians.

getParameters

public final LambertConformalConic.Parameters getParameters()


JOSM