|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.CoordinateSystem visad.georef.NavigatedCoordinateSystem visad.georef.MapProjection
public abstract class MapProjection
Abstract class for coordinate systems that support (lat,lon) <-> (x,y) with a reference coordinate system of (lat, lon) or (lon, lat).
Constructor Summary | |
---|---|
MapProjection(RealTupleType reference,
Unit[] units)
Constructs from the type of the reference coordinate system and units for values in this coordinate system. |
Method Summary | |
---|---|
LatLonPoint |
getCenterLatLon()
Get the center lat/lon point for this MapProjection. |
abstract Rectangle2D |
getDefaultMapArea()
Get a reasonable bounding box in this coordinate system. |
LatLonPoint |
getLatLon(double[][] xy)
Get the lat/lon point for the given xy pairs. |
int |
getXIndex()
Get the X index |
int |
getYIndex()
Get the Y index |
boolean |
isLatLonOrder()
Determine if the fromReference and toReference expect the to get the output and input values to be row/col ordered or |
boolean |
isXYOrder()
Determine if the input to the toReference and output from the fromReference is (x,y) or (y,x). |
String |
toString()
Print out a string representation of this MapProjection |
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 MapProjection(RealTupleType reference, Unit[] units) throws VisADException
reference
- The type of the reference coordinate system. The
reference must contain RealType.Latitude and
RealType.Longitude. Values in the reference
coordinate system shall be in units of
reference.getDefaultUnits() unless specified
otherwise.units
- The default units for this coordinate system.
Numeric values in this coordinate system shall be
in units of units unless specified otherwise.
May be null or an array of null-s.
VisADException
- Couldn't create necessary VisAD object or
reference does not contain RealType.Latitude
and/or RealType.Longitude or the reference
dimension is greater than 2.Method Detail |
---|
public abstract Rectangle2D getDefaultMapArea()
public boolean isXYOrder()
public boolean isLatLonOrder()
public LatLonPoint getCenterLatLon() throws VisADException
VisADException
public int getXIndex()
public int getYIndex()
public LatLonPoint getLatLon(double[][] xy) throws VisADException
VisADException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |