public abstract class AbstractProjection extends Object implements Projection
Modifier and Type | Field and Description |
---|---|
protected Datum |
datum |
protected Ellipsoid |
ellps |
protected double |
k0 |
protected double |
lon0 |
protected double |
pm |
protected Proj |
proj |
private ProjectionBounds |
projectionBoundsBox |
protected double |
x0 |
protected double |
y0 |
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() |
ProjectionBounds |
getWorldBoundsBoxEastNorth()
Get an approximate EastNorth box around the lat/lon world bounds.
|
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, getMetersPerUnit, getWorldBoundsLatLon, switchXY, toString
protected double x0
protected double y0
protected double lon0
protected double pm
protected double k0
private volatile ProjectionBounds projectionBoundsBox
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)
public final ProjectionBounds getWorldBoundsBoxEastNorth()
Projection
Projection.getWorldBoundsLatLon()
. The lat/lon bounds need not be a
rectangular shape in east/north space. This method returns a box that
contains this shape.getWorldBoundsBoxEastNorth
in interface Projection