public class Mercator extends ProjectionImpl
Projection,
ProjectionImpl,
Serialized Formatts, defaultMapArea, EARTH_RADIUS, INDEX_LAT, INDEX_LON, INDEX_X, INDEX_Y, isLatLon, name, PI, PI_OVER_2, PI_OVER_4, TOLERANCE| 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 |
|---|---|
ProjectionImpl |
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)
Returns true if this represents the same Projection as proj.
|
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,
ProjectionPointImpl result)
Convert a LatLonPoint to projection coordinates
|
String |
paramsToString()
Get the parameters as a String
|
LatLonPoint |
projToLatLon(ProjectionPoint world,
LatLonPointImpl result)
Convert projection coordinates to a LatLonPoint
Note: a new object is not created on each call for the return value.
|
String |
toString()
Get a String representation of this projection.
|
addParameter, addParameter, addParameter, findProjectionParameter, getClassName, getDefaultMapArea, getDefaultMapAreaLL, getHeader, getLatLonBoundingBox, getName, getProjectionParameters, getProjectionTypeLabel, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, setDefaultMapArea, setNamepublic 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 ProjectionImpl constructCopy()
constructCopy in class ProjectionImplpublic double getParallel()
public double getOriginLon()
public double getFalseEasting()
public double getFalseNorthing()
public double getEarthRadius()
public String paramsToString()
paramsToString in interface ProjectionparamsToString in class ProjectionImplpublic String toString()
ProjectionImpltoString in class ProjectionImplpublic boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
crossSeam in interface ProjectioncrossSeam in class ProjectionImplpt1 - the line goes between these two pointspt2 - the line goes between these two pointspublic boolean equals(Object o)
ProjectionImplequals in interface Projectionequals in class ProjectionImplo - projection in questionpublic ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result)
latLonToProj in interface ProjectionlatLonToProj in class ProjectionImpllatLon - convert from these lat, lon coordinatesresult - the object to write topublic LatLonPoint projToLatLon(ProjectionPoint world, LatLonPointImpl result)
projToLatLon in interface ProjectionprojToLatLon in class ProjectionImplworld - convert from these projection coordinatesresult - the object to write toCopyright © 1999-2012 UCAR/Unidata. All Rights Reserved.