org.cresques.cts.gt2
Class CoordSys
java.lang.Object
org.cresques.cts.gt2.CoordSys
- All Implemented Interfaces:
- IProjection
- Direct Known Subclasses:
- CSGaussPt, CSLambertCC, CSUTM
- public class CoordSys
- extends java.lang.Object
- implements IProjection
Sistema de Coordenadas (Proyección).
- Author:
- "Luis W. Sevilla"
Field Summary |
protected java.lang.String |
abrev
|
protected CoordinateSystemFactory |
csFactory
|
protected CSDatum |
datum
|
protected GeographicCoordinateSystem |
geogCS
|
protected ProjectedCoordinateSystem |
projCS
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
csFactory
protected CoordinateSystemFactory csFactory
datum
protected CSDatum datum
geogCS
protected GeographicCoordinateSystem geogCS
projCS
protected ProjectedCoordinateSystem projCS
abrev
protected java.lang.String abrev
CoordSys
public CoordSys(CSDatum datum)
toGeo
public CoordSys toGeo()
- Crea un nuevo CoordSys geográfico a partir de uno proyectado.
Si el actual es geográfico retorna el mismo.
- Returns:
getDatum
public IDatum getDatum()
- Specified by:
getDatum
in interface IProjection
getCS
public CoordinateSystem getCS()
getGeogCS
public CoordinateSystem getGeogCS()
createPoint
public java.awt.geom.Point2D createPoint(double x,
double y)
- Specified by:
createPoint
in interface IProjection
toString
public java.lang.String toString()
setAbrev
public void setAbrev(java.lang.String abrev)
getAbrev
public java.lang.String getAbrev()
- Specified by:
getAbrev
in interface IProjection
drawGrid
public void drawGrid(java.awt.Graphics2D g,
ViewPortData vp)
- Specified by:
drawGrid
in interface IProjection
setGridColor
public void setGridColor(java.awt.Color c)
- Specified by:
setGridColor
in interface IProjection
getGridColor
public java.awt.Color getGridColor()
- Specified by:
getGridColor
in interface IProjection
toGeo
public java.awt.geom.Point2D toGeo(java.awt.geom.Point2D pt)
- Specified by:
toGeo
in interface IProjection
fromGeo
public java.awt.geom.Point2D fromGeo(java.awt.geom.Point2D gPt,
java.awt.geom.Point2D mPt)
- Specified by:
fromGeo
in interface IProjection
getScale
public double getScale(double minX,
double maxX,
double w,
double dpi)
- Specified by:
getScale
in interface IProjection