org.cts.op
Class ChangeCoordinateDimension
java.lang.Object
org.cts.IdentifiableComponent
org.cts.op.AbstractCoordinateOperation
org.cts.op.ChangeCoordinateDimension
- All Implemented Interfaces:
- Identifiable, CoordinateOperation
public class ChangeCoordinateDimension
- extends AbstractCoordinateOperation
Change de coordinate dimension. For example, this operation can add or remove
a vertical dimension to a 2D coordinate.
- Author:
- Michaƫl Michaud
|
Method Summary |
double[] |
transform(double[] coord)
Add a vertical coordinate. |
| Methods inherited from class org.cts.IdentifiableComponent |
addAlias, addRemark, equals, getAliases, getAuthorityKey, getAuthorityName, getCode, getComponent, getIdentifier, getName, getRemarks, getShortName, hashCode, setIdentifier, setRemarks, setShortName, toString |
| Methods inherited from interface org.cts.Identifiable |
addAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getName, getRemarks, getShortName, setRemarks, setShortName |
TO3D
public static final ChangeCoordinateDimension TO3D
TO2D
public static final ChangeCoordinateDimension TO2D
transform
public double[] transform(double[] coord)
throws IllegalCoordinateException
- Add a vertical coordinate.
- Specified by:
transform in interface CoordinateOperation- Specified by:
transform in class AbstractCoordinateOperation
- Parameters:
coord - is an array containing one, two or three ordinates
- Returns:
- a double array containing the output coordinate
- Throws:
IllegalCoordinateException - if coord is not
compatible with this CoordinateOperation.
Copyright © 2014 IRSTV CNRS-FR-2488. All Rights Reserved.