public class CoordSys extends java.lang.Object implements IProjection
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
abrev |
protected CoordinateSystemFactory |
csFactory |
protected CSDatum |
datum |
protected GeographicCoordinateSystem |
geogCS |
protected ProjectedCoordinateSystem |
projCS |
Constructor and Description |
---|
CoordSys(CSDatum datum) |
CoordSys(java.lang.String wkt) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
java.awt.geom.Point2D |
createPoint(double x,
double y) |
void |
drawGrid(java.awt.Graphics2D g,
ViewPortData vp) |
java.lang.String |
export(java.lang.String format)
Return the string representation of projection in the format.
|
java.awt.geom.Point2D |
fromGeo(java.awt.geom.Point2D gPt,
java.awt.geom.Point2D mPt) |
java.lang.String |
getAbrev() |
CoordinateSystem |
getCS() |
ICoordTrans |
getCT(IProjection dest)
Crea un ICoordTrans para transformar coordenadas
desde el IProjection actual al dest.
|
IDatum |
getDatum() |
java.awt.geom.Rectangle2D |
getExtent(java.awt.geom.Rectangle2D extent,
double scale,
double wImage,
double hImage,
double mapUnits,
double distanceUnits,
double dpi) |
java.lang.String |
getFullCode()
Devuelve getAbrev() mas los parametros de transformacion si los hay
ej.: (EPSG:23030:proj@+proj...@...)
|
CoordinateSystem |
getGeogCS() |
java.awt.Color |
getGridColor() |
double |
getScale(double minX,
double maxX,
double w,
double dpi)
First two parameters must be in meters.
|
boolean |
isProjected() |
void |
setAbrev(java.lang.String abrev) |
void |
setGridColor(java.awt.Color c) |
CoordSys |
toGeo()
Crea un nuevo CoordSys geográfico a partir de uno proyectado.
|
java.awt.geom.Point2D |
toGeo(java.awt.geom.Point2D pt) |
java.lang.String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cloneQuietly, cloneQuietly
protected CoordinateSystemFactory csFactory
protected CSDatum datum
protected GeographicCoordinateSystem geogCS
protected ProjectedCoordinateSystem projCS
protected java.lang.String abrev
public CoordSys(CSDatum datum)
public CoordSys(java.lang.String wkt)
public CoordSys toGeo()
public IDatum getDatum()
getDatum
in interface IProjection
public CoordinateSystem getCS()
public CoordinateSystem getGeogCS()
public java.awt.geom.Point2D createPoint(double x, double y)
createPoint
in interface IProjection
public java.lang.String toString()
toString
in class java.lang.Object
public void setAbrev(java.lang.String abrev)
public java.lang.String getAbrev()
getAbrev
in interface IProjection
public void drawGrid(java.awt.Graphics2D g, ViewPortData vp)
drawGrid
in interface IProjection
public void setGridColor(java.awt.Color c)
setGridColor
in interface IProjection
public java.awt.Color getGridColor()
getGridColor
in interface IProjection
public java.awt.geom.Point2D toGeo(java.awt.geom.Point2D pt)
toGeo
in interface IProjection
public java.awt.geom.Point2D fromGeo(java.awt.geom.Point2D gPt, java.awt.geom.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 java.awt.geom.Rectangle2D getExtent(java.awt.geom.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 java.lang.String getFullCode()
IProjection
getFullCode
in interface IProjection
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class java.lang.Object
java.lang.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 java.lang.String export(java.lang.String format)
IProjection
export
in interface IProjection