public class COperation extends java.lang.Object implements ICoordTrans
Constructor and Description |
---|
COperation(ICrs from,
ICrs to)
Constructor.
|
COperation(ICrs sourceCrs,
ICrs targetCrs,
java.lang.String sourceParams,
java.lang.String targetParams)
Construcctor.
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Point2D |
convert(java.awt.geom.Point2D ptOrig,
java.awt.geom.Point2D ptDest) |
java.awt.geom.Rectangle2D |
convert(java.awt.geom.Rectangle2D rect)
Reprojects the input rectangle and returns the minimum rectangle
containing the result of that reprojection (which was not
necessarily a rectangle).
|
ICoordTrans |
getInverted() |
IProjection |
getPDest() |
IProjection |
getPOrig() |
public COperation(ICrs from, ICrs to) throws CrsException
from
- CRS fuente.to
- CRS destino.CrsException
public COperation(ICrs sourceCrs, ICrs targetCrs, java.lang.String sourceParams, java.lang.String targetParams) throws CrsException
sourceCrs
- CRS fuente.targetCrs
- CRS destino.sourceParams
- Parámetros de transformación para la fuente (en formato
proj4).targetParams
- Parámetros de transformación para el destino (en formato
proj4).CrsException
public IProjection getPOrig()
getPOrig
in interface ICoordTrans
public IProjection getPDest()
getPDest
in interface ICoordTrans
public java.awt.geom.Point2D convert(java.awt.geom.Point2D ptOrig, java.awt.geom.Point2D ptDest) throws CoordTransRuntimeException
convert
in interface ICoordTrans
CoordTransRuntimeException
public java.awt.geom.Rectangle2D convert(java.awt.geom.Rectangle2D rect) throws CoordTransRuntimeException
ICoordTrans
convert
in interface ICoordTrans
CoordTransRuntimeException
public ICoordTrans getInverted()
getInverted
in interface ICoordTrans