public class COperation extends Object implements ICoordTrans
Constructor and Description |
---|
COperation(ICrs from,
ICrs to)
Constructor.
|
COperation(ICrs sourceCrs,
ICrs targetCrs,
String sourceParams,
String targetParams)
Construcctor.
|
Modifier and Type | Method and Description |
---|---|
Point2D |
convert(Point2D ptOrig,
Point2D ptDest) |
Rectangle2D |
convert(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, String sourceParams, 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 Point2D convert(Point2D ptOrig, Point2D ptDest) throws CoordTransRuntimeException
convert
in interface ICoordTrans
CoordTransRuntimeException
public Rectangle2D convert(Rectangle2D rect) throws CoordTransRuntimeException
ICoordTrans
convert
in interface ICoordTrans
CoordTransRuntimeException
public ICoordTrans getInverted()
getInverted
in interface ICoordTrans