public class MapProjectionProjection
extends ucar.unidata.geoloc.ProjectionImpl
Projection,
ProjectionImpl,
Serialized Form| Constructor and Description |
|---|
MapProjectionProjection()
Constructor with default parameters
|
MapProjectionProjection(visad.georef.MapProjection mapProjection)
Construct a MapProjection Projection.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone this projection.
|
ucar.unidata.geoloc.ProjectionImpl |
constructCopy()
copy constructor - avoid clone !!
|
boolean |
crossSeam(ucar.unidata.geoloc.ProjectionPoint pt1,
ucar.unidata.geoloc.ProjectionPoint pt2)
This returns true when the line between pt1 and pt2 crosses the seam.
|
boolean |
equals(java.lang.Object proj)
Check for equality with the Object in question
|
visad.georef.MapProjection |
getMapProjection()
Get the underlying map projection
|
java.lang.String |
getProjectionTypeLabel()
Get the label to be used in the gui for this type of projection
|
double[][] |
latLonToProj(double[][] from,
double[][] to,
int latIndex,
int lonIndex)
Convert lat/lon coordinates to projection coordinates.
|
float[][] |
latLonToProj(float[][] from,
float[][] to,
int latIndex,
int lonIndex)
Convert lat/lon coordinates to projection coordinates.
|
ucar.unidata.geoloc.ProjectionPoint |
latLonToProj(ucar.unidata.geoloc.LatLonPoint latLon,
ucar.unidata.geoloc.ProjectionPointImpl result)
Convert a LatLonPoint to projection coordinates
|
static void |
main(java.lang.String[] args)
Test
|
java.lang.String |
paramsToString()
Create a String of the parameters.
|
double[][] |
projToLatLon(double[][] from,
double[][] to)
Convert lat/lon coordinates to projection coordinates.
|
float[][] |
projToLatLon(float[][] from,
float[][] to)
Convert lat/lon coordinates to projection coordinates.
|
ucar.unidata.geoloc.LatLonPoint |
projToLatLon(ucar.unidata.geoloc.ProjectionPoint world,
ucar.unidata.geoloc.LatLonPointImpl result)
Convert projection coordinates to a LatLonPoint
Note: a new object is not created on each call for the return value.
|
addParameter, addParameter, addParameter, findProjectionParameter, getClassName, getDefaultMapArea, getDefaultMapAreaLL, getHeader, getName, getProjectionParameters, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, projToLatLonBBold, setDefaultMapArea, setName, toStringpublic MapProjectionProjection()
public MapProjectionProjection(visad.georef.MapProjection mapProjection)
mapProjection - the VisAD MapProjection to wrappublic ucar.unidata.geoloc.ProjectionImpl constructCopy()
constructCopy in class ucar.unidata.geoloc.ProjectionImplpublic java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object proj)
equals in interface ucar.unidata.geoloc.Projectionequals in class ucar.unidata.geoloc.ProjectionImplproj - object to checkpublic java.lang.String getProjectionTypeLabel()
getProjectionTypeLabel in class ucar.unidata.geoloc.ProjectionImplpublic java.lang.String paramsToString()
paramsToString in interface ucar.unidata.geoloc.ProjectionparamsToString in class ucar.unidata.geoloc.ProjectionImplpublic ucar.unidata.geoloc.ProjectionPoint latLonToProj(ucar.unidata.geoloc.LatLonPoint latLon,
ucar.unidata.geoloc.ProjectionPointImpl result)
latLonToProj in interface ucar.unidata.geoloc.ProjectionlatLonToProj in class ucar.unidata.geoloc.ProjectionImpllatLon - convert from these lat, lon coordinatesresult - the object to write topublic ucar.unidata.geoloc.LatLonPoint projToLatLon(ucar.unidata.geoloc.ProjectionPoint world,
ucar.unidata.geoloc.LatLonPointImpl result)
projToLatLon in interface ucar.unidata.geoloc.ProjectionprojToLatLon in class ucar.unidata.geoloc.ProjectionImplworld - convert from these projection coordinatesresult - the object to write topublic float[][] latLonToProj(float[][] from,
float[][] to,
int latIndex,
int lonIndex)
latLonToProj in class ucar.unidata.geoloc.ProjectionImplfrom - 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,
where to[0][i], to[1][i] is the (x,y) coordinate
of the ith pointlatIndex - index of latitude in "from"lonIndex - index of longitude in "from"public boolean crossSeam(ucar.unidata.geoloc.ProjectionPoint pt1,
ucar.unidata.geoloc.ProjectionPoint pt2)
crossSeam in interface ucar.unidata.geoloc.ProjectioncrossSeam in class ucar.unidata.geoloc.ProjectionImplpt1 - point 1pt2 - point 2public float[][] projToLatLon(float[][] from,
float[][] to)
projToLatLon in class ucar.unidata.geoloc.ProjectionImplfrom - 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 pointpublic double[][] latLonToProj(double[][] from,
double[][] to,
int latIndex,
int lonIndex)
latLonToProj in class ucar.unidata.geoloc.ProjectionImplfrom - 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,
where to[0][i], to[1][i] is the (x,y) coordinate
of the ith pointlatIndex - index of latitude in "from"lonIndex - index of longitude in "from"public double[][] projToLatLon(double[][] from,
double[][] to)
projToLatLon in class ucar.unidata.geoloc.ProjectionImplfrom - 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 pointpublic visad.georef.MapProjection getMapProjection()
public static void main(java.lang.String[] args)
args - not used