public class CoordSys extends Object implements IProjection
Modifier and Type | Field and Description |
---|---|
protected String |
abrev |
protected CoordinateSystemFactory |
csFactory |
protected CSDatum |
datum |
protected GeographicCoordinateSystem |
geogCS |
protected ProjectedCoordinateSystem |
projCS |
Constructor and Description |
---|
CoordSys(CSDatum datum) |
CoordSys(String wkt) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a copy of the object.
|
Point2D |
createPoint(double x,
double y) |
void |
drawGrid(Graphics2D g,
ViewPortData vp) |
String |
export(String format)
Return the string representation of projection in the format.
|
Point2D |
fromGeo(Point2D gPt,
Point2D mPt) |
String |
getAbrev() |
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...@...)
|
CoordinateSystem |
getGeogCS() |
Color |
getGridColor() |
double |
getScale(double minX,
double maxX,
double w,
double dpi)
First two parameters must be in meters.
|
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() |
protected CoordinateSystemFactory csFactory
protected CSDatum datum
protected GeographicCoordinateSystem geogCS
protected ProjectedCoordinateSystem projCS
protected String abrev
public CoordSys toGeo()
public IDatum getDatum()
getDatum
in interface IProjection
public CoordinateSystem getCS()
public CoordinateSystem getGeogCS()
public Point2D createPoint(double x, double y)
createPoint
in interface IProjection
public void setAbrev(String abrev)
public String getAbrev()
getAbrev
in interface IProjection
public void drawGrid(Graphics2D g, ViewPortData vp)
drawGrid
in interface IProjection
public void setGridColor(Color c)
setGridColor
in interface IProjection
public Color getGridColor()
getGridColor
in interface IProjection
public Point2D toGeo(Point2D pt)
toGeo
in interface IProjection
public Point2D fromGeo(Point2D gPt, Point2D mPt)
fromGeo
in interface IProjection
public double getScale(double minX, double maxX, double w, double dpi)
IProjection
getScale
in interface IProjection
minX
- in metersmaxX
- in metersw
- in pixels (dots)dpi
- dots per inchpublic Rectangle2D getExtent(Rectangle2D extent, double scale, double wImage, double hImage, double mapUnits, double distanceUnits, double dpi)
getExtent
in interface IProjection
public boolean isProjected()
isProjected
in interface IProjection
public ICoordTrans getCT(IProjection dest)
IProjection
getCT
in interface IProjection
public String getFullCode()
IProjection
getFullCode
in interface IProjection
public Object clone() throws CloneNotSupportedException
Cloneable
clone
in class Object
CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so
its sure it implements it, so this exception may be used for problems
on specific object instances.Object#clone()}.
public String export(String format)
IProjection
export
in interface IProjection