org.cresques.impl.geo
Class Projection
java.lang.Object
org.cresques.impl.geo.Projection
- All Implemented Interfaces:
- Cloneable, IProjection
- Direct Known Subclasses:
- CCLambert, Gauss, Geodetic, Mercator, UtmZone
public abstract class Projection
- extends Object
- implements IProjection
NORTH
public static int NORTH
SOUTH
public static int SOUTH
Projection
public Projection()
Projection
public Projection(Ellipsoid e)
getName
public String getName()
getAbrev
public abstract String getAbrev()
- Specified by:
getAbrev in interface IProjection
getDatum
public IDatum getDatum()
- Specified by:
getDatum in interface IProjection
getElliPar
public double[] getElliPar()
createPoint
public abstract Point2D createPoint(double x,
double y)
- Specified by:
createPoint in interface IProjection
createPoint
public Point2D createPoint(Point2D pt)
getProjectionByName
public static IProjection getProjectionByName(IDatum eli,
String name)
getReproyectionTo
public ReProjection getReproyectionTo(Projection proj)
toGeo
public abstract Point2D toGeo(Point2D pt)
- Specified by:
toGeo in interface IProjection
fromGeo
public abstract Point2D fromGeo(Point2D gPt,
Point2D mPt)
- Specified by:
fromGeo in interface IProjection
setGridColor
public void setGridColor(Color c)
- Specified by:
setGridColor in interface IProjection
getGridColor
public Color getGridColor()
- Specified by:
getGridColor in interface IProjection
coordToString
public static String coordToString(double coord,
String fmt,
boolean isLat)
drawGrid
public abstract void drawGrid(Graphics2D g,
ViewPortData vp)
- Specified by:
drawGrid in interface IProjection
isProjected
public boolean isProjected()
- Specified by:
isProjected in interface IProjection
clone
public Object clone()
throws CloneNotSupportedException
- Overrides:
clone in class Object
- Throws:
CloneNotSupportedException
Copyright © 2004-2013 gvSIG. All Rights Reserved.