@Immutable public class Mercator extends AbstractProjection
| Constructor and Description |
|---|
Mercator()
Constructor with default parameters
|
Mercator(double lon0,
double par)
Construct a Mercator Projection.
|
Mercator(double lon0,
double par,
double false_easting,
double false_northing) |
Mercator(double lon0,
double par,
double false_easting,
double false_northing,
double radius)
Construct a Mercator Projection.
|
| Modifier and Type | Method and Description |
|---|---|
Projection |
constructCopy()
copy constructor - avoid clone !!
|
static double |
convertScaleToStandardParallel(double scale)
Convert "scale at standard parellel" to "standard parellel"
|
boolean |
crossSeam(ProjectionPoint pt1,
ProjectionPoint pt2)
Does the line between these two points cross the projection "seam".
|
boolean |
equals(Object o) |
double |
getEarthRadius() |
double |
getFalseEasting()
Get the false easting, in km.
|
double |
getFalseNorthing()
Get the false northing, in km.
|
double |
getOriginLon()
Get the origin longitude.
|
double |
getParallel()
Get the first standard parallel
|
int |
hashCode() |
ProjectionPoint |
latLonToProj(LatLonPoint latLon)
Convert a LatLonPoint to projection coordinates.
|
String |
paramsToString()
Get the parameters as a String
|
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, getProjectionTypeLabel, isLatLon, latLonToProjBB, projToLatLonBBclone, finalize, getClass, notify, notifyAll, wait, wait, waitlatLonToProj, projToLatLonpublic Mercator()
public Mercator(double lon0,
double par)
lon0 - longitude of origin (degrees)par - standard parallel (degrees). cylinder cuts earth at this latitude.public Mercator(double lon0,
double par,
double false_easting,
double false_northing)
public Mercator(double lon0,
double par,
double false_easting,
double false_northing,
double radius)
lon0 - longitude of origin (degrees)par - standard parallel (degrees). cylinder cuts earth at this latitude.false_easting - false_easting in kmfalse_northing - false_northing in kmradius - earth radius in kmpublic static double convertScaleToStandardParallel(double scale)
scale - scale at standard parallelpublic Projection constructCopy()
AbstractProjectionconstructCopy in class AbstractProjectionpublic double getParallel()
public double getOriginLon()
public double getFalseEasting()
public double getFalseNorthing()
public double getEarthRadius()
public String paramsToString()
paramsToString in interface ProjectionparamsToString in class AbstractProjectionpublic String toString()
AbstractProjectiontoString in class AbstractProjectionpublic boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
pt1 - the line goes between these two pointspt2 - the line goes between these two pointspublic ProjectionPoint latLonToProj(LatLonPoint latLon)
Projectionpublic LatLonPoint projToLatLon(ProjectionPoint world)
Projection