@Immutable public class FlatEarth extends AbstractProjection
| Modifier and Type | Field and Description |
|---|---|
static String |
ROTATIONANGLE |
| Constructor and Description |
|---|
FlatEarth()
Constructor with default parameters
|
FlatEarth(double lat0,
double lon0) |
FlatEarth(double lat0,
double lon0,
double rotAngle) |
FlatEarth(double lat0,
double lon0,
double rotAngle,
double radius)
Construct a FlatEarth Projection, two standard parellels.
|
| 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.
|
double |
getRotationAngle()
Get the rotation angle.
|
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 static final String ROTATIONANGLE
public FlatEarth()
public FlatEarth(double lat0,
double lon0)
public FlatEarth(double lat0,
double lon0,
double rotAngle)
public FlatEarth(double lat0,
double lon0,
double rotAngle,
double radius)
lat0 - lat origin of the coord. system on the projection planelon0 - lon origin of the coord. system on the projection planerotAngle - angle of rotation, in degreesradius - earth radius in kmIllegalArgumentException - if lat0, par1, par2 = +/-90 degpublic Projection constructCopy()
AbstractProjectionconstructCopy in class AbstractProjectionpublic double getOriginLon()
public double getOriginLat()
public double getRotationAngle()
public String getProjectionTypeLabel()
AbstractProjectiongetProjectionTypeLabel in class AbstractProjectionpublic String paramsToString()
ProjectionparamsToString in interface ProjectionparamsToString in class AbstractProjectionpublic String toString()
AbstractProjectiontoString in class AbstractProjectionpublic ProjectionPoint latLonToProj(LatLonPoint latLon)
Projectionpublic LatLonPoint projToLatLon(ProjectionPoint world)
Projectionpublic boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
pt1 - the line goes between these two pointspt2 - the line goes between these two points