public abstract class AbstractProjection extends Object implements Projection
Modifier and Type | Field and Description |
---|---|
protected Datum |
datum |
protected Ellipsoid |
ellps |
protected double |
k_0 |
protected double |
lon_0 |
protected Proj |
proj |
protected double |
x_0 |
protected double |
y_0 |
Constructor and Description |
---|
AbstractProjection() |
Modifier and Type | Method and Description |
---|---|
protected static double |
convertDegreeMinuteSecond(double degree,
double minute,
double second) |
protected static double |
convertMinuteSecond(double minute,
double second) |
LatLon |
eastNorth2latlon(EastNorth en)
Convert from easting/norting to lat/lon.
|
double |
getCentralMeridian() |
Datum |
getDatum() |
double |
getDefaultZoomInPPD()
The default scale factor in east/north units per pixel
(
NavigatableComponent.scale )). |
Ellipsoid |
getEllipsoid() |
abstract Integer |
getEpsgCode() |
double |
getFalseEasting() |
double |
getFalseNorthing() |
Proj |
getProj()
Replies the projection (in the narrow sense)
|
double |
getScaleFactor() |
EastNorth |
latlon2eastNorth(LatLon ll)
Convert from lat/lon to easting/northing.
|
String |
toCode()
Default implementation of toCode().
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCacheDirectoryName, getWorldBoundsLatLon, toString
protected double x_0
protected double y_0
protected double lon_0
protected double k_0
public AbstractProjection()
public final Ellipsoid getEllipsoid()
public final Proj getProj()
public final double getFalseEasting()
public final double getFalseNorthing()
public final double getCentralMeridian()
public final double getScaleFactor()
public EastNorth latlon2eastNorth(LatLon ll)
Projection
latlon2eastNorth
in interface Projection
ll
- the geographical point to convert (in WGS84 lat/lon)public LatLon eastNorth2latlon(EastNorth en)
Projection
eastNorth2latlon
in interface Projection
en
- the geographical point to convert (in projected coordinates)public double getDefaultZoomInPPD()
Projection
NavigatableComponent.scale
)).
FIXME: misnomergetDefaultZoomInPPD
in interface Projection
public abstract Integer getEpsgCode()
public String toCode()
toCode
in interface Projection
protected static final double convertMinuteSecond(double minute, double second)
protected static final double convertDegreeMinuteSecond(double degree, double minute, double second)