org.cresques.impl.cts.gt2
Class CoordSys
java.lang.Object
org.cresques.impl.cts.gt2.CoordSys
- All Implemented Interfaces:
- Cloneable, IProjection
- Direct Known Subclasses:
- CSGaussPt, CSLambertCC, CSMercator, CSUTM
public class CoordSys
- extends Object
- implements IProjection
Sistema de Coordenadas (Proyección).
- Author:
- "Luis W. Sevilla"
|
Field Summary |
protected String |
abrev
|
protected org.geotools.cs.CoordinateSystemFactory |
csFactory
|
protected CSDatum |
datum
|
protected org.geotools.cs.GeographicCoordinateSystem |
geogCS
|
protected org.geotools.cs.ProjectedCoordinateSystem |
projCS
|
|
Method Summary |
Object |
clone()
|
Point2D |
createPoint(double x,
double y)
|
void |
drawGrid(Graphics2D g,
ViewPortData vp)
|
Point2D |
fromGeo(Point2D gPt,
Point2D mPt)
|
String |
getAbrev()
|
org.geotools.cs.CoordinateSystem |
getCS()
|
ICoordTrans |
getCT(IProjection dest)
Crea un ICoordTrans para transformar coordenadas
desde el IProjection actual al dest. |
IDatum |
getDatum()
|
Rectangle2D |
getExtent(Rectangle2D extent,
double scale,
double wImage,
double hImage,
double mapUnits,
double distanceUnits,
double dpi)
|
String |
getFullCode()
Devuelve getAbrev() mas los parametros de transformacion si los hay
ej.: (EPSG:23030:proj@+proj...@...) |
org.geotools.cs.CoordinateSystem |
getGeogCS()
|
Color |
getGridColor()
|
double |
getScale(double minX,
double maxX,
double w,
double dpi)
|
boolean |
isProjected()
|
void |
setAbrev(String abrev)
|
void |
setGridColor(Color c)
|
CoordSys |
toGeo()
Crea un nuevo CoordSys geográfico a partir de uno proyectado. |
Point2D |
toGeo(Point2D pt)
|
String |
toString()
|
csFactory
protected org.geotools.cs.CoordinateSystemFactory csFactory
datum
protected CSDatum datum
geogCS
protected org.geotools.cs.GeographicCoordinateSystem geogCS
projCS
protected org.geotools.cs.ProjectedCoordinateSystem projCS
abrev
protected String abrev
CoordSys
public CoordSys(CSDatum datum)
CoordSys
public CoordSys(String wkt)
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 org.geotools.cs.CoordinateSystem getCS()
getGeogCS
public org.geotools.cs.CoordinateSystem getGeogCS()
createPoint
public Point2D createPoint(double x,
double y)
- Specified by:
createPoint in interface IProjection
toString
public String toString()
- Overrides:
toString in class Object
setAbrev
public void setAbrev(String abrev)
getAbrev
public String getAbrev()
- Specified by:
getAbrev in interface IProjection
drawGrid
public void drawGrid(Graphics2D g,
ViewPortData vp)
- Specified by:
drawGrid 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
toGeo
public Point2D toGeo(Point2D pt)
- Specified by:
toGeo in interface IProjection
fromGeo
public Point2D fromGeo(Point2D gPt,
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
getExtent
public Rectangle2D getExtent(Rectangle2D extent,
double scale,
double wImage,
double hImage,
double mapUnits,
double distanceUnits,
double dpi)
- Specified by:
getExtent in interface IProjection
isProjected
public boolean isProjected()
- Specified by:
isProjected in interface IProjection
getCT
public ICoordTrans getCT(IProjection dest)
- Description copied from interface:
IProjection
- Crea un ICoordTrans para transformar coordenadas
desde el IProjection actual al dest.
- Specified by:
getCT in interface IProjection
- Returns:
getFullCode
public String getFullCode()
- Description copied from interface:
IProjection
- Devuelve getAbrev() mas los parametros de transformacion si los hay
ej.: (EPSG:23030:proj@+proj...@...)
- Specified by:
getFullCode in interface IProjection
- Returns:
- getAbrev() o getAbrev()+parametros
clone
public Object clone()
throws CloneNotSupportedException
- Overrides:
clone in class Object
- Throws:
CloneNotSupportedException
Copyright © 2004-2013 gvSIG. All Rights Reserved.