public class UnstructuredProjection extends ProjectionImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EARTH_SHAPE |
static java.lang.String |
NUMBER_OF_GRID_IN_REFERENCE |
static java.lang.String |
NUMBER_OF_GRID_USED |
static java.lang.String |
UUID |
atts, defaultMapArea, defaultUnits, EARTH_RADIUS, INDEX_LAT, INDEX_LON, INDEX_X, INDEX_Y, isLatLon, name, PI, PI_OVER_2, PI_OVER_4, TOLERANCE
Constructor and Description |
---|
UnstructuredProjection(int earthShape,
int numberOfGridUsed,
int numberOfGridInReference,
java.lang.String uuid)
Create a new UnstructuredProjection with a given name.
|
Modifier and Type | Method and Description |
---|---|
ProjectionImpl |
constructCopy()
copy constructor - avoid clone !!
|
boolean |
crossSeam(ProjectionPoint pt1,
ProjectionPoint pt2)
For unstructured grids, the notion of crossing a seam is irrelevant,
so we return false (or you could throw an exception).
|
boolean |
equals(java.lang.Object o)
Returns true if this represents the same Projection as proj.
|
int |
hashCode() |
ProjectionPoint |
latLonToProj(LatLonPoint latlon,
ProjectionPointImpl dest)
Since we do not have a formula for an unstructured grid,
throw an exception if someone tries to do forward transform.
|
java.lang.String |
paramsToString()
Get a string representation of the projection parameters
|
LatLonPoint |
projToLatLon(ProjectionPoint world,
LatLonPointImpl dest)
Similarly, inverse transform is not defined for unstructured grids.
|
addParameter, addParameter, addParameter, findProjectionParameter, getClassName, getDefaultMapArea, getDefaultMapAreaLL, getDefaultUnits, getHeader, getName, getProjectionParameters, getProjectionTypeLabel, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, projToLatLonBBold, setDefaultMapArea, setName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
latLonToProj, projToLatLon
public static final java.lang.String EARTH_SHAPE
public static final java.lang.String NUMBER_OF_GRID_USED
public static final java.lang.String NUMBER_OF_GRID_IN_REFERENCE
public static final java.lang.String UUID
public UnstructuredProjection(int earthShape, int numberOfGridUsed, int numberOfGridInReference, java.lang.String uuid)
public ProjectionImpl constructCopy()
ProjectionImpl
constructCopy
in class ProjectionImpl
public ProjectionPoint latLonToProj(LatLonPoint latlon, ProjectionPointImpl dest)
latLonToProj
in interface Projection
latLonToProj
in class ProjectionImpl
latlon
- convert from these lat, lon coordinatesdest
- the object to write topublic LatLonPoint projToLatLon(ProjectionPoint world, LatLonPointImpl dest)
projToLatLon
in interface Projection
projToLatLon
in class ProjectionImpl
world
- convert from these projection coordinatesdest
- the object to write topublic boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
crossSeam
in interface Projection
crossSeam
in class ProjectionImpl
pt1
- the line goes between these two pointspt2
- the line goes between these two pointspublic java.lang.String paramsToString()
ProjectionImpl
paramsToString
in interface Projection
paramsToString
in class ProjectionImpl
public boolean equals(java.lang.Object o)
ProjectionImpl
equals
in interface Projection
equals
in class ProjectionImpl
o
- projection in questionpublic int hashCode()
hashCode
in class java.lang.Object