@Immutable public class Orthographic extends AbstractProjection
| Constructor and Description |
|---|
Orthographic() |
Orthographic(double lat0,
double lon0)
Construct a Orthographic Projection.
|
Orthographic(double lat0,
double lon0,
double earthRadius)
Construct a Orthographic Projection, specify earth radius
|
| Modifier and Type | Method and Description |
|---|---|
Projection |
constructCopy()
copy constructor - avoid clone !!
|
boolean |
crossSeam(ProjectionPoint pt1,
ProjectionPoint pt2)
This returns true when the line between pt1 and pt2 crosses the seam.
|
boolean |
equals(Object o) |
double |
getOriginLat()
Get the origin latitude in degrees
|
double |
getOriginLon()
Get the origin longitude in degrees
|
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.
|
String |
paramsToString()
String representation of the projection parameters.
|
LatLonPoint |
projToLatLon(ProjectionPoint world)
Convert projection coordinates to a LatLonPoint.
|
String |
toString()
Get a String representation of this projection.
|
addParameter, addParameter, addParameter, addParameter, findProjectionParameter, getClassName, getHeader, getMinOrMaxLon, getName, getProjectionAttributes, getProjectionParameters, isLatLon, latLonToProjBB, projToLatLonBBclone, finalize, getClass, notify, notifyAll, wait, wait, waitlatLonToProj, projToLatLonpublic Orthographic()
public Orthographic(double lat0,
double lon0)
lat0 - lat origin of the coord. system on the projection planelon0 - lon origin of the coord. system on the projection planepublic Orthographic(double lat0,
double lon0,
double earthRadius)
lat0 - lat origin of the coord. system on the projection planelon0 - lon origin of the coord. system on the projection planeearthRadius - radius of the earthIllegalArgumentException - if lat0, par1, par2 = +/-90 degpublic Projection constructCopy()
AbstractProjectionconstructCopy in class AbstractProjectionpublic double getOriginLon()
public double getOriginLat()
public String getProjectionTypeLabel()
AbstractProjectiongetProjectionTypeLabel in class AbstractProjectionpublic String paramsToString()
ProjectionparamsToString in interface ProjectionparamsToString in class AbstractProjectionpublic String toString()
AbstractProjectiontoString in class AbstractProjectionpublic boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
pt1 - point 1pt2 - point 2public ProjectionPoint latLonToProj(LatLonPoint latLon)
Projectionpublic LatLonPoint projToLatLon(ProjectionPoint world)
Projection