public class ProjectionCoordinateSystem extends visad.georef.MapProjection implements XmlPersistable
Projection,
MapProjection,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static boolean |
debug
_more_
|
| Constructor and Description |
|---|
ProjectionCoordinateSystem(ucar.unidata.geoloc.ProjectionImpl projection)
Constructs an instance from the supplied Projection.
|
ProjectionCoordinateSystem(ucar.unidata.geoloc.ProjectionImpl projection,
visad.Unit[] units)
Constructs an instance from the supplied Projection.
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Element |
createElement(XmlEncoder encoder)
Create the XML to represent this object.
|
boolean |
equals(java.lang.Object obj)
Check for equality of CoordinateSystem objects
|
double[][] |
fromReference(double[][] latlon)
Convert lat/lon coordinates to world (projection) coords.
|
float[][] |
fromReference(float[][] latlon)
Convert lat/lon coordinates to world (projection) coords.
|
java.awt.geom.Rectangle2D |
getDefaultMapArea()
Get a reasonable bounding box in this coordinate system.
|
ucar.unidata.geoloc.ProjectionImpl |
getProjection()
Get the Projection used for the transformations.
|
boolean |
initFromXml(XmlEncoder encoder,
org.w3c.dom.Element node)
Do nothing, return true to tell the encoder that it is ok to process
any methods or properties.
|
double[][] |
toReference(double[][] world)
Convert world coordinates to lat/lon.
|
float[][] |
toReference(float[][] world)
Convert world coordinates to lat/lon.
|
java.lang.String |
toString()
Override the parent toString method to use the
contained ProjectionImpl's name
|
getCenterLatLon, getLatLon, getXIndex, getYIndex, isLatLonOrder, isXYOrdergetLatitudeIndex, getLongitudeIndexcanConvert, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnitspublic ProjectionCoordinateSystem(ucar.unidata.geoloc.ProjectionImpl projection)
throws visad.VisADException
projection - projection to adaptvisad.VisADExceptionpublic ProjectionCoordinateSystem(ucar.unidata.geoloc.ProjectionImpl projection,
visad.Unit[] units)
throws visad.VisADException
projection - projection to adaptunits - units to usevisad.VisADExceptionpublic java.lang.String toString()
toString in class visad.georef.MapProjectionpublic java.awt.geom.Rectangle2D getDefaultMapArea()
getDefaultMapArea in class visad.georef.MapProjectionpublic ucar.unidata.geoloc.ProjectionImpl getProjection()
public double[][] toReference(double[][] world)
throws visad.VisADException
toReference in class visad.CoordinateSystemworld - world projection coordinates (x = world[0][i])visad.VisADException - world coordinate array length != 2public double[][] fromReference(double[][] latlon)
throws visad.VisADException
fromReference in class visad.CoordinateSystemlatlon - lat/lon values (lat = latlon[0][i])visad.VisADException - latlon coordinate array length != 2public float[][] toReference(float[][] world)
throws visad.VisADException
toReference in class visad.CoordinateSystemworld - world projection coordinates (x = world[0][i])visad.VisADException - world coordinate array length != 2public float[][] fromReference(float[][] latlon)
throws visad.VisADException
fromReference in class visad.CoordinateSystemlatlon - lat/lon values (lat = latlon[0][i])visad.VisADException - latlon coordinate array length != 2public boolean equals(java.lang.Object obj)
equals in class visad.CoordinateSystemobj - other object in questionpublic org.w3c.dom.Element createElement(XmlEncoder encoder)
createElement in interface XmlPersistableencoder - encoder to usepublic boolean initFromXml(XmlEncoder encoder, org.w3c.dom.Element node)
initFromXml in interface XmlPersistableencoder - encoder to usenode - node to process