org.cresques.geo
Class Mercator

java.lang.Object
  extended byorg.cresques.geo.Projection
      extended byorg.cresques.geo.Mercator
All Implemented Interfaces:
IProjection

public class Mercator
extends Projection

Proyeccion Mercator

Author:
"Luis W. Sevilla" * @author administrador

Field Summary
static Mercator hayford
           
static Mercator wgs84
           
 
Fields inherited from class org.cresques.geo.Projection
NORTH, SOUTH
 
Constructor Summary
Mercator(Ellipsoid eli)
           
 
Method Summary
 java.awt.geom.Point2D createPoint(double x, double y)
           
 void drawGrid(java.awt.Graphics2D g, ViewPortData vp)
           
 java.awt.geom.Point2D fromGeo(java.awt.geom.Point2D gPt, java.awt.geom.Point2D mPt)
           
 java.lang.String getAbrev()
           
static Mercator getProjection(Ellipsoid eli)
           
static IProjection getProjectionByName(IDatum eli, java.lang.String name)
           
 double getScale(double minX, double maxX, double width, double dpi)
           
 java.awt.geom.Point2D toGeo(java.awt.geom.Point2D mPt)
           
 GeoPoint toGeo(ProjPoint mPt, GeoPoint gPt)
           
 
Methods inherited from class org.cresques.geo.Projection
coordToString, createPoint, getDatum, getElliPar, getGridColor, getName, getReproyectionTo, setGridColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hayford

public static final Mercator hayford

wgs84

public static final Mercator wgs84
Constructor Detail

Mercator

public Mercator(Ellipsoid eli)
Method Detail

getAbrev

public java.lang.String getAbrev()
Specified by:
getAbrev in interface IProjection
Specified by:
getAbrev in class Projection

getProjection

public static Mercator getProjection(Ellipsoid eli)

getProjectionByName

public static IProjection getProjectionByName(IDatum eli,
                                              java.lang.String name)

createPoint

public java.awt.geom.Point2D createPoint(double x,
                                         double y)
Specified by:
createPoint in interface IProjection
Specified by:
createPoint in class Projection

toGeo

public java.awt.geom.Point2D toGeo(java.awt.geom.Point2D mPt)
Specified by:
toGeo in interface IProjection
Specified by:
toGeo in class Projection
Returns:

toGeo

public GeoPoint toGeo(ProjPoint mPt,
                      GeoPoint gPt)
Parameters:
mPt -
gPt -
Returns:

fromGeo

public java.awt.geom.Point2D fromGeo(java.awt.geom.Point2D gPt,
                                     java.awt.geom.Point2D mPt)
Specified by:
fromGeo in interface IProjection
Specified by:
fromGeo in class Projection
Parameters:
gPt -
Returns:

drawGrid

public void drawGrid(java.awt.Graphics2D g,
                     ViewPortData vp)
Specified by:
drawGrid in interface IProjection
Specified by:
drawGrid in class Projection

getScale

public double getScale(double minX,
                       double maxX,
                       double width,
                       double dpi)