@Immutable public class LatLonProjection extends AbstractProjection
| Constructor and Description |
|---|
LatLonProjection() |
LatLonProjection(Earth earth) |
LatLonProjection(String name) |
LatLonProjection(String name,
Earth earth,
double centerLon) |
| Modifier and Type | Method and Description |
|---|---|
Projection |
constructCopy()
copy constructor - avoid clone !!
|
boolean |
crossSeam(ProjectionPoint pt1,
ProjectionPoint pt2)
Does the line between these two points cross the projection "seam".
|
boolean |
equals(Object o)
See if this projection equals the object in question
|
double |
getCenterLon()
Get the center of the Longitude range.
|
Earth |
getEarth()
Get the Earth used in this projection.
|
String |
getProjectionTypeLabel()
Get the label to be used in the gui for this type of projection
|
int |
hashCode() |
ProjectionPoint |
latLonToProj(LatLonPoint latlon)
Convert a LatLonPoint to projection coordinates.
|
ProjectionRect |
latLonToProjBB(LatLonRect latlonRect)
Convert a lat/lon bounding box to a world coordinate bounding box,
by finding the minimum enclosing box.
|
ProjectionRect[] |
latLonToProjRect(double lat0,
double lon0,
double lat1,
double lon1)
Create a latlon rectangle from two points.
|
ProjectionRect[] |
latLonToProjRect(LatLonRect latlonR)
Split a latlon rectangle to the equivalent ProjectionRect(s).
|
String |
paramsToString()
Get a String of the parameters
|
LatLonPoint |
projToLatLon(ProjectionPoint world)
Convert projection coordinates to a LatLonPoint.
|
LatLonRect |
projToLatLonBB(ProjectionRect world)
Compute lat/lon bounding box from projection bounding box.
|
addParameter, addParameter, addParameter, addParameter, findProjectionParameter, getClassName, getHeader, getMinOrMaxLon, getName, getProjectionAttributes, getProjectionParameters, isLatLon, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitlatLonToProj, projToLatLonpublic LatLonProjection()
public LatLonProjection(String name)
public LatLonProjection(Earth earth)
public Projection constructCopy()
AbstractProjectionconstructCopy in class AbstractProjectionpublic String getProjectionTypeLabel()
getProjectionTypeLabel in class AbstractProjectionpublic String paramsToString()
paramsToString in interface ProjectionparamsToString in class AbstractProjectionpublic boolean equals(Object o)
public ProjectionPoint latLonToProj(LatLonPoint latlon)
Projectionpublic LatLonPoint projToLatLon(ProjectionPoint world)
Projectionpublic double getCenterLon()
public Earth getEarth()
public boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
pt1 - the line goes between these two pointspt2 - the line goes between these two pointspublic LatLonRect projToLatLonBB(ProjectionRect world)
ProjectionprojToLatLonBB in interface ProjectionprojToLatLonBB in class AbstractProjectionworld - projection bounding boxpublic ProjectionRect latLonToProjBB(LatLonRect latlonRect)
ProjectionlatLonToProjBB in interface ProjectionlatLonToProjBB in class AbstractProjectionlatlonRect - input lat,lon bounding boxpublic ProjectionRect[] latLonToProjRect(LatLonRect latlonR)
latlonR - the latlon rectangle to transformlatLonToProjRect(double, double, double, double)public ProjectionRect[] latLonToProjRect(double lat0, double lon0, double lat1, double lon1)
lat0 - lat of starting pointlon0 - lon of starting point, unnormalizedlat1 - lat of ending pointlon1 - lon of ending point, unnormalized