|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.CoordinateSystem
visad.georef.NavigatedCoordinateSystem
visad.georef.MapProjection
visad.georef.TrivialMapProjection
public class TrivialMapProjection
A trivial implementation for a MapProjection which provides an identity coordinate system with a default bounding box. This is useful for defining an area in LatLon or LonLat space with a bounding box. What goes in, comes right back out.
| Constructor Summary | |
|---|---|
TrivialMapProjection()
Create a MapProjection that just returns the input tuple. |
|
TrivialMapProjection(RealTupleType reference)
Create a MapProjection that just returns the input tuple. |
|
TrivialMapProjection(RealTupleType type,
Rectangle2D bounds)
Create a MapProjection that just returns the input tuple. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
See if the object in question is equal to this CoordinateSystem. |
double[][] |
fromReference(double[][] refTuple)
Transform from the reference coordinates |
float[][] |
fromReference(float[][] refTuple)
Transform from the reference coordinates |
Rectangle2D |
getDefaultMapArea()
Get a reasonable bounding box in this coordinate system. |
double[][] |
toReference(double[][] tuple)
Transform to the reference coordinates |
float[][] |
toReference(float[][] tuple)
Transform to the reference coordinates |
| Methods inherited from class visad.georef.MapProjection |
|---|
getCenterLatLon, getLatLon, getXIndex, getYIndex, isLatLonOrder, isXYOrder, toString |
| Methods inherited from class visad.georef.NavigatedCoordinateSystem |
|---|
getLatitudeIndex, getLongitudeIndex |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TrivialMapProjection()
throws VisADException
VisADException - reference does not contain Latitude/Longitude
or couldn't create the necessary VisAD object
public TrivialMapProjection(RealTupleType reference)
throws VisADException
reference - reference RealTupleType
VisADException - reference does not contain Latitude/Longitude
or couldn't create the necessary VisAD object
public TrivialMapProjection(RealTupleType type,
Rectangle2D bounds)
throws VisADException
type - reference RealTupleTypebounds - rectangle bounds
VisADException - reference does not contain Latitude/Longitude
or couldn't create the necessary VisAD object| Method Detail |
|---|
public double[][] toReference(double[][] tuple)
throws VisADException
toReference in class CoordinateSystemtuple - array of values
VisADException - tuple is null or wrong dimension
public double[][] fromReference(double[][] refTuple)
throws VisADException
fromReference in class CoordinateSystemrefTuple - array of values
VisADException - tuple is null or wrong dimension
public float[][] toReference(float[][] tuple)
throws VisADException
toReference in class CoordinateSystemtuple - array of values
VisADException - tuple is null or wrong dimension
public float[][] fromReference(float[][] refTuple)
throws VisADException
fromReference in class CoordinateSystemrefTuple - array of values
VisADException - tuple is null or wrong dimensionpublic boolean equals(Object o)
equals in class CoordinateSystemo - Object in question
public Rectangle2D getDefaultMapArea()
getDefaultMapArea in class MapProjection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||