public abstract class MapProjection extends NavigatedCoordinateSystem
Constructor and Description |
---|
MapProjection(RealTupleType reference,
Unit[] units)
Constructs from the type of the reference coordinate system and
units for values in this coordinate system.
|
Modifier and Type | Method and Description |
---|---|
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
|
getLatitudeIndex, getLongitudeIndex
canConvert, equals, fromReference, fromReference, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits
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.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
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.