public class Mercator extends ProjectionImpl
Projection,
ProjectionImpl,
Serialized FormATTR_NAME, atts, 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 parameteres
|
Mercator(double lon0,
double par)
Construct a Mercator Projection.
|
Mercator(double lat0,
double lon0,
double par)
Deprecated.
use Mercator(double lon0, double par)
|
Mercator(double lon0,
double par,
double false_easting,
double false_northing)
Construct a Mercator Projection.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone this projection
|
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 proj)
Returns true if this represents the same Projection as proj.
|
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
|
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)
Set the false_easting, in km.
|
void |
setFalseNorthing(double falseNorthing)
Set the false northing, in km.
|
void |
setOriginLat(double lat)
Deprecated.
not used, only here for XML Persistence
|
void |
setOriginLon(double lon)
Set the origin longitude.
|
void |
setParallel(double par)
Set the first standard parallel
|
addParameter, addParameter, addParameter, 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, setName, toStringpublic Mercator()
public Mercator(double lat0,
double lon0,
double par)
lat0 - latitude of origin (degrees) NOT USEDlon0 - longitude of origin (degrees)par - standard parallel (degrees). cylinder cuts earth at this latitude.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)
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 kmpublic static double convertScaleToStandardParallel(double scale)
scale - scale at standard parellelpublic ProjectionImpl constructCopy()
constructCopy in class ProjectionImplpublic double getParallel()
public void setParallel(double par)
par - the first standard parallelpublic double getOriginLon()
public void setOriginLon(double lon)
lon - the origin longitude.public void setOriginLat(double lat)
lat - the origin latitude.public double getFalseEasting()
public void setFalseEasting(double falseEasting)
falseEasting - x offsetpublic double getFalseNorthing()
public void setFalseNorthing(double falseNorthing)
falseNorthing - y offsetpublic java.lang.String paramsToString()
paramsToString in interface ProjectionparamsToString 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 java.lang.Object clone()
clone in class ProjectionImplpublic boolean equals(java.lang.Object proj)
equals in interface Projectionequals in class ProjectionImplproj - 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 to