@Deprecated public abstract class ProjectionImpl extends java.lang.Object implements Projection, java.io.Serializable
All subclasses must:
Note on "false_easting" and "fale_northing" projection parameters:
Projection
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected java.util.List<Parameter> |
atts
Deprecated.
list of attributes
|
protected ProjectionRect |
defaultMapArea
Deprecated.
default map area
|
protected java.lang.String |
defaultUnits
Deprecated.
name of the default units for this projection
|
static double |
EARTH_RADIUS
Deprecated.
not public.
|
static int |
INDEX_LAT
Deprecated.
not public.
|
static int |
INDEX_LON
Deprecated.
not public.
|
static int |
INDEX_X
Deprecated.
not public.
|
static int |
INDEX_Y
Deprecated.
not public.
|
protected boolean |
isLatLon
Deprecated.
flag for latlon
|
protected java.lang.String |
name
Deprecated.
name of this projection.
|
static double |
PI
Deprecated.
use Math.PI
|
static double |
PI_OVER_2
Deprecated.
use Math.PI/2
|
static double |
PI_OVER_4
Deprecated.
use Math.PI/4
|
protected static double |
TOLERANCE
Deprecated.
not public.
|
Modifier | Constructor and Description |
---|---|
protected |
ProjectionImpl(java.lang.String name,
boolean isLatLon)
Deprecated.
|
protected |
ProjectionImpl(java.lang.String name,
java.lang.String defaultUnits,
boolean isLatLon)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addParameter(Parameter p)
Deprecated.
Add an attribute to this projection
|
protected void |
addParameter(java.lang.String name,
double value)
Deprecated.
Add an attribute to this projection
|
protected void |
addParameter(java.lang.String name,
java.lang.String value)
Deprecated.
Add an attribute to this projection
|
abstract ProjectionImpl |
constructCopy()
Deprecated.
copy constructor - avoid clone !!
|
abstract boolean |
crossSeam(ProjectionPoint pt1,
ProjectionPoint pt2)
Deprecated.
Does the line between these two points cross the projection "seam".
|
abstract boolean |
equals(java.lang.Object proj)
Deprecated.
Returns true if this represents the same Projection as proj.
|
Parameter |
findProjectionParameter(java.lang.String want)
Deprecated.
do not use
|
java.lang.String |
getClassName()
Deprecated.
Get the name of the type of the projection.
|
ProjectionRect |
getDefaultMapArea()
Deprecated.
Get a reasonable bounding box for this projection.
|
LatLonRect |
getDefaultMapAreaLL()
Deprecated.
Get the bounding box in lat/lon.
|
java.lang.String |
getDefaultUnits()
Deprecated.
Get the name of the default units for this projection
|
static java.lang.String |
getHeader()
Deprecated.
Get a header for display.
|
java.lang.String |
getName()
Deprecated.
Get the name of this specific projection (also see getClassName)
|
java.util.List<Parameter> |
getProjectionParameters()
Deprecated.
Get parameters as list of ucar.unidata.util.Parameter
|
java.lang.String |
getProjectionTypeLabel()
Deprecated.
Get the label to be used in the gui for this type of projection.
|
boolean |
isLatLon()
Deprecated.
Is this the lat/lon Projection ?
|
double[][] |
latLonToProj(double[][] from)
Deprecated.
use Projections.latLonToProj(Projection proj, ...)
|
double[][] |
latLonToProj(double[][] from,
double[][] to)
Deprecated.
use Projections.latLonToProj(Projection proj, ...)
|
double[][] |
latLonToProj(double[][] from,
double[][] to,
int latIndex,
int lonIndex)
Deprecated.
use Projections.latLonToProj(Projection proj, ...)
|
double[][] |
latLonToProj(double[][] from,
int latIndex,
int lonIndex)
Deprecated.
use Projections.latLonToProj(Projection proj, ...)
|
float[][] |
latLonToProj(float[][] from)
Deprecated.
use Projections.latLonToProj(Projection proj, ...)
|
float[][] |
latLonToProj(float[][] from,
float[][] to)
Deprecated.
use Projections.latLonToProj(Projection proj, ...)
|
float[][] |
latLonToProj(float[][] from,
float[][] to,
int latIndex,
int lonIndex)
Deprecated.
use Projections.latLonToProj(Projection proj, ...)
|
float[][] |
latLonToProj(float[][] from,
int latIndex,
int lonIndex)
Deprecated.
use Projections.latLonToProj(Projection proj, ...)
|
ProjectionPoint |
latLonToProj(LatLonPoint latLon)
Deprecated.
Convert a LatLonPoint to projection coordinates
Note: a new object is now created on each call for the return value, as of 4.0.46
|
abstract ProjectionPoint |
latLonToProj(LatLonPoint latlon,
ProjectionPointImpl destPoint)
Deprecated.
use latLonToProj(LatLonPoint latLon)
|
ProjectionRect |
latLonToProjBB(LatLonRect latlonRect)
Deprecated.
Convert a lat/lon bounding box to a world coordinate bounding box,
by finding the minimum enclosing box.
|
abstract java.lang.String |
paramsToString()
Deprecated.
Get a string representation of the projection parameters
|
double[][] |
projToLatLon(double[][] from)
Deprecated.
use Projections.latLonToProj(Projection proj, ...)
|
double[][] |
projToLatLon(double[][] from,
double[][] to)
Deprecated.
use Projections.latLonToProj(Projection proj, ...)
|
float[][] |
projToLatLon(float[][] from)
Deprecated.
use Projections.latLonToProj(Projection proj, ...)
|
float[][] |
projToLatLon(float[][] from,
float[][] to)
Deprecated.
use Projections.latLonToProj(Projection proj, ...)
|
LatLonPoint |
projToLatLon(ProjectionPoint ppt)
Deprecated.
Convert projection coordinates to a LatLonPoint
Note: a new object is now created on each call for the return value, as of 4.0.46
|
abstract LatLonPoint |
projToLatLon(ProjectionPoint ppt,
LatLonPointImpl destPoint)
Deprecated.
use projToLatLon(ProjectionPoint ppt)
|
LatLonRect |
projToLatLonBB(ProjectionRect bb)
Deprecated.
Compute lat/lon bounding box from projection bounding box.
|
LatLonRect |
projToLatLonBBold(ProjectionRect world)
Deprecated.
do not use
|
void |
setDefaultMapArea(ProjectionRect bb)
Deprecated.
use builder
|
void |
setName(java.lang.String name)
Deprecated.
use builder
|
java.lang.String |
toString()
Deprecated.
Get a String representation of this projection.
|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
latLonToProj, projToLatLon
public static final double EARTH_RADIUS
public static final int INDEX_LAT
public static final int INDEX_LON
public static final int INDEX_X
public static final int INDEX_Y
protected static final double TOLERANCE
public static final double PI
public static final double PI_OVER_2
public static final double PI_OVER_4
protected java.lang.String name
protected java.lang.String defaultUnits
protected final boolean isLatLon
protected final java.util.List<Parameter> atts
protected ProjectionRect defaultMapArea
protected ProjectionImpl(java.lang.String name, java.lang.String defaultUnits, boolean isLatLon)
protected ProjectionImpl(java.lang.String name, boolean isLatLon)
public abstract ProjectionImpl constructCopy()
public java.lang.String getClassName()
getClassName
in interface Projection
public abstract java.lang.String paramsToString()
paramsToString
in interface Projection
public java.lang.String getProjectionTypeLabel()
@Deprecated public abstract ProjectionPoint latLonToProj(LatLonPoint latlon, ProjectionPointImpl destPoint)
latLonToProj
in interface Projection
latlon
- convert from these lat, lon coordinatesdestPoint
- the object to write topublic ProjectionPoint latLonToProj(LatLonPoint latLon)
latLonToProj
in interface Projection
latLon
- convert from these lat, lon coordinates@Deprecated public abstract LatLonPoint projToLatLon(ProjectionPoint ppt, LatLonPointImpl destPoint)
projToLatLon
in interface Projection
ppt
- convert from these projection coordinatesdestPoint
- the object to write topublic LatLonPoint projToLatLon(ProjectionPoint ppt)
projToLatLon
in interface Projection
ppt
- convert from these projection coordinatespublic abstract boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
crossSeam
in interface Projection
pt1
- the line goes between these two pointspt2
- the line goes between these two pointspublic abstract boolean equals(java.lang.Object proj)
equals
in interface Projection
equals
in class java.lang.Object
proj
- projection in questionpublic java.lang.String getName()
getName
in interface Projection
@Deprecated public void setName(java.lang.String name)
public java.lang.String getDefaultUnits()
public java.util.List<Parameter> getProjectionParameters()
getProjectionParameters
in interface Projection
@Deprecated public Parameter findProjectionParameter(java.lang.String want)
protected void addParameter(java.lang.String name, java.lang.String value)
name
- name of the attributevalue
- attribute value as a stringprotected void addParameter(java.lang.String name, double value)
name
- name of the attributevalue
- attribute value as a doubleprotected void addParameter(Parameter p)
p
- specify as a Parameterpublic boolean isLatLon()
isLatLon
in interface Projection
public static java.lang.String getHeader()
public java.lang.String toString()
toString
in class java.lang.Object
public ProjectionRect getDefaultMapArea()
getDefaultMapArea
in interface Projection
public LatLonRect getDefaultMapAreaLL()
@Deprecated public void setDefaultMapArea(ProjectionRect bb)
bb
- bounding box@Deprecated public double[][] projToLatLon(double[][] from)
from
- array of projection coordinates: from[2][n],
where from[0][i], from[1][i] is the x, y coordinate
of the ith point@Deprecated public double[][] projToLatLon(double[][] from, double[][] to)
from
- array of projection coordinates: from[2][n], where
(from[0][i], from[1][i]) is the (x, y) coordinate
of the ith pointto
- resulting array of lat/lon coordinates: to[2][n] where
(to[0][i], to[1][i]) is the (lat, lon) coordinate of
the ith point@Deprecated public float[][] projToLatLon(float[][] from)
from
- array of projection coordinates: from[2][n],
where from[0][i], from[1][i] is the x, y coordinate
of the ith point@Deprecated public float[][] projToLatLon(float[][] from, float[][] to)
from
- array of projection coordinates: from[2][n], where
(from[0][i], from[1][i]) is the (x, y) coordinate
of the ith pointto
- resulting array of lat/lon coordinates: to[2][n] where
(to[0][i], to[1][i]) is the (lat, lon) coordinate of
the ith point@Deprecated public double[][] latLonToProj(double[][] from)
from
- array of lat/lon coordinates: from[2][n],
where from[0][i], from[1][i] is the (lat,lon)
coordinate of the ith point@Deprecated public double[][] latLonToProj(double[][] from, double[][] to)
from
- array of lat/lon coordinates: from[2][n], where
(from[0][i], from[1][i]) is the (lat,lon) coordinate
of the ith pointto
- resulting array of projection coordinates: to[2][n]
where (to[0][i], to[1][i]) is the (x,y) coordinate
of the ith point@Deprecated public double[][] latLonToProj(double[][] from, int latIndex, int lonIndex)
from
- array of lat/lon coordinates: from[2][n], where
(from[latIndex][i], from[lonIndex][i]) is the (lat,lon)
coordinate of the ith pointlatIndex
- index of lat coordinate; must be 0 or 1lonIndex
- index of lon coordinate; must be 0 or 1@Deprecated public double[][] latLonToProj(double[][] from, double[][] to, int latIndex, int lonIndex)
from
- array of lat/lon coordinates: from[2][n], where
(from[latIndex][i], from[lonIndex][i]) is the (lat,lon)
coordinate of the ith pointto
- resulting array of projection coordinates: to[2][n]
where (to[0][i], to[1][i]) is the (x,y) coordinate of
the ith pointlatIndex
- index of lat coordinate; must be 0 or 1lonIndex
- index of lon coordinate; must be 0 or 1@Deprecated public float[][] latLonToProj(float[][] from)
from
- array of lat/lon coordinates: from[2][n],
where from[0][i], from[1][i] is the (lat,lon)
coordinate of the ith point@Deprecated public float[][] latLonToProj(float[][] from, float[][] to)
from
- array of lat/lon coordinates: from[2][n], where
(from[0][i], from[1][i]) is the (lat,lon) coordinate
of the ith pointto
- resulting array of projection coordinates: to[2][n]
where (to[0][i], to[1][i]) is the (x,y) coordinate
of the ith point@Deprecated public float[][] latLonToProj(float[][] from, int latIndex, int lonIndex)
from
- array of lat/lon coordinates: from[2][n], where
(from[latIndex][i], from[lonIndex][i]) is the (lat,lon)
coordinate of the ith pointlatIndex
- index of lat coordinate; must be 0 or 1lonIndex
- index of lon coordinate; must be 0 or 1@Deprecated public float[][] latLonToProj(float[][] from, float[][] to, int latIndex, int lonIndex)
from
- array of lat/lon coordinates: from[2][n], where
(from[latIndex][i], from[lonIndex][i]) is the (lat,lon)
coordinate of the ith pointto
- resulting array of projection coordinates: to[2][n]
where (to[0][i], to[1][i]) is the (x,y) coordinate of
the ith pointlatIndex
- index of lat coordinate; must be 0 or 1lonIndex
- index of lon coordinate; must be 0 or 1public ProjectionRect latLonToProjBB(LatLonRect latlonRect)
Projection
latLonToProjBB
in interface Projection
latlonRect
- input lat,lon bounding boxpublic LatLonRect projToLatLonBB(ProjectionRect bb)
Projection
projToLatLonBB
in interface Projection
bb
- projection bounding box@Deprecated public LatLonRect projToLatLonBBold(ProjectionRect world)
world
- input world coordinate bounding box