|
||||||||||
| 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
ucar.visad.ProjectionCoordinateSystem
public class ProjectionCoordinateSystem
Adapts a ucar.unidata.Projection into a VisAD MapProjection CoordinateSystem. Transforms between world coordinates (x,y) in km and lat/lon in degrees. Reference is lat/lon (RealTupleType.LatitudeLongitudeTuple)
Projection,
MapProjection,
Serialized Form| Constructor Summary | |
|---|---|
ProjectionCoordinateSystem(ucar.unidata.geoloc.ProjectionImpl projection)
Constructs an instance from the supplied Projection. |
|
| Method Summary | |
|---|---|
Element |
createElement(XmlEncoder encoder)
Create the XML to represent this object. |
boolean |
equals(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. |
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,
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. |
String |
toString()
Override the parent toString method to use the contained ProjectionImpl's name |
| Methods inherited from class visad.georef.MapProjection |
|---|
getCenterLatLon, getLatLon, isLatLonOrder, isXYOrder |
| 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 ProjectionCoordinateSystem(ucar.unidata.geoloc.ProjectionImpl projection)
throws VisADException
projection - projection to adapt
NullPointerException - if the argument is null.
VisADException| Method Detail |
|---|
public String toString()
toString in class MapProjectionpublic Rectangle2D getDefaultMapArea()
getDefaultMapArea in class MapProjectionpublic ucar.unidata.geoloc.ProjectionImpl getProjection()
public double[][] toReference(double[][] world)
throws VisADException
toReference in class CoordinateSystemworld - world projection coordinates (x = world[0][i])
VisADException - world coordinate array length != 2
public double[][] fromReference(double[][] latlon)
throws VisADException
fromReference in class CoordinateSystemlatlon - lat/lon values (lat = latlon[0][i])
VisADException - latlon coordinate array length != 2
public float[][] toReference(float[][] world)
throws VisADException
toReference in class CoordinateSystemworld - world projection coordinates (x = world[0][i])
VisADException - world coordinate array length != 2
public float[][] fromReference(float[][] latlon)
throws VisADException
fromReference in class CoordinateSystemlatlon - lat/lon values (lat = latlon[0][i])
VisADException - latlon coordinate array length != 2public boolean equals(Object obj)
equals in class CoordinateSystemobj - other object in question
public Element createElement(XmlEncoder encoder)
createElement in interface XmlPersistableencoder - encoder to use
public boolean initFromXml(XmlEncoder encoder,
Element node)
initFromXml in interface XmlPersistableencoder - encoder to usenode - node to process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||