public class Mercator extends ProjectionImpl
Projection,
ProjectionImpl,
Serialized Formatts, defaultMapArea, defaultUnits, 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(java.lang.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
|
java.lang.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.
|
void |
setFalseEasting(double falseEasting)
Deprecated.
|
void |
setFalseNorthing(double falseNorthing)
Deprecated.
|
void |
setOriginLon(double lon)
Deprecated.
|
void |
setParallel(double par)
Deprecated.
|
java.lang.String |
toString()
Get a String representation of this projection.
|
addParameter, addParameter, addParameter, findProjectionParameter, getClassName, getDefaultMapArea, getDefaultMapAreaLL, getDefaultUnits, getHeader, getName, getProjectionParameters, getProjectionTypeLabel, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, projToLatLonBBold, setDefaultMapArea, setNameclone, 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 ProjectionImpl constructCopy()
ProjectionImplconstructCopy in class ProjectionImplpublic double getParallel()
public double getOriginLon()
public double getFalseEasting()
public double getFalseNorthing()
public double getEarthRadius()
@Deprecated public void setParallel(double par)
par - the first standard parallel@Deprecated public void setOriginLon(double lon)
lon - the origin longitude.@Deprecated public void setFalseEasting(double falseEasting)
falseEasting - x offset@Deprecated public void setFalseNorthing(double falseNorthing)
falseNorthing - y offsetpublic java.lang.String paramsToString()
paramsToString in interface ProjectionparamsToString in class ProjectionImplpublic java.lang.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(java.lang.Object o)
ProjectionImplequals in interface Projectionequals in class ProjectionImplo - projection in questionpublic int hashCode()
hashCode in class java.lang.Objectpublic ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result)
ProjectionImpllatLonToProj in interface ProjectionlatLonToProj in class ProjectionImpllatLon - convert from these lat, lon coordinatesresult - the object to write topublic LatLonPoint projToLatLon(ProjectionPoint world, LatLonPointImpl result)
ProjectionImplprojToLatLon in interface ProjectionprojToLatLon in class ProjectionImplworld - convert from these projection coordinatesresult - the object to write to