public class CrsGT extends Object implements ICrs
| Constructor and Description |
|---|
CrsGT(CoordinateReferenceSystem crsGT)
Constructor a partir de un CoordinateReferenceSystem
|
| 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() |
int |
getCode()
Código del CRS
|
CoordinateReferenceSystem |
getCrsGT() |
CrsProj |
getCrsProj() |
CrsWkt |
getCrsWkt()
Campos de la cadena wkt
|
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...@...)
|
Color |
getGridColor() |
String |
getProj4String() |
double |
getScale(double minX,
double maxX,
double width,
double dpi)
First two parameters must be in meters.
|
double |
getScale(double minX,
double maxX,
double minY,
double maxY,
double width,
double dpi) |
String |
getSourceTransformationParams()
Devuelve los parametros de la transformacion del crs fuente
|
String |
getTargetTransformationParams()
Devuelve los parametros de la transformacion del crs destino
|
String |
getWKT()
Cadena WKT del CRS utilizado
|
boolean |
isProjected() |
void |
setGridColor(Color c) |
void |
setTransformationParams(String SourceParams,
String TargetParams)
Establece los parámetros de transformación para el CRS fuente y para
el destino
|
Point2D |
toGeo(Point2D pt) |
public CrsGT(CoordinateReferenceSystem crsGT)
crsGT - CrsProjExceptionpublic int getCode()
ICrspublic void setTransformationParams(String SourceParams, String TargetParams)
ICrssetTransformationParams in interface ICrsSourceParams - Parámetros de transformación (proj4) en el CRS fuente.
null si no se quiere asignar parámetros en la fuente.TargetParams - Parámetros de transformación (proj4) en el CRS destino.
null si no se quiere asignar parámetros en el destino.public String getSourceTransformationParams()
getSourceTransformationParams in interface ICrspublic String getTargetTransformationParams()
getTargetTransformationParams in interface ICrspublic Point2D createPoint(double x, double y)
createPoint in interface IProjectionpublic void drawGrid(Graphics2D g, ViewPortData vp)
drawGrid in interface IProjectionpublic Point2D fromGeo(Point2D gPt, Point2D mPt)
fromGeo in interface IProjectionpublic String getAbrev()
getAbrev in interface IProjectionpublic ICoordTrans getCT(IProjection dest)
IProjectiongetCT in interface IProjectionpublic IDatum getDatum()
getDatum in interface IProjectionpublic Color getGridColor()
getGridColor in interface IProjectionpublic double getScale(double minX,
double maxX,
double width,
double dpi)
IProjectiongetScale in interface IProjectionminX - in metersmaxX - in meterswidth - in pixels (dots)dpi - dots per inchpublic double getScale(double minX,
double maxX,
double minY,
double maxY,
double width,
double dpi)
public boolean isProjected()
isProjected in interface IProjectionpublic void setGridColor(Color c)
setGridColor in interface IProjectionpublic Point2D toGeo(Point2D pt)
toGeo in interface IProjectionpublic String getProj4String() throws CrsException
getProj4String in interface ICrsCrsExceptionpublic CoordinateReferenceSystem getCrsGT()
public CrsProj getCrsProj()
getCrsProj in interface ICrspublic String getFullCode()
IProjectiongetFullCode in interface IProjectionpublic Rectangle2D getExtent(Rectangle2D extent, double scale, double wImage, double hImage, double mapUnits, double distanceUnits, double dpi)
getExtent in interface IProjectionpublic Object clone() throws CloneNotSupportedException
Cloneableclone in class ObjectCloneNotSupportedException - 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)
IProjectionexport in interface IProjection