org.cts.op
Class ChangeCoordinateDimension

java.lang.Object
  extended by org.cts.IdentifiableComponent
      extended by org.cts.op.AbstractCoordinateOperation
          extended by 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

Field Summary
static ChangeCoordinateDimension TO2D
           
static ChangeCoordinateDimension TO3D
           
 
Fields inherited from class org.cts.op.AbstractCoordinateOperation
precision
 
Fields inherited from interface org.cts.Identifiable
DEFAULT, LOCAL, UNKNOWN
 
Method Summary
 double[] transform(double[] coord)
          Add a vertical coordinate.
 
Methods inherited from class org.cts.op.AbstractCoordinateOperation
getPrecision, inverse
 
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.cts.Identifiable
addAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getName, getRemarks, getShortName, setRemarks, setShortName
 

Field Detail

TO3D

public static final ChangeCoordinateDimension TO3D

TO2D

public static final ChangeCoordinateDimension TO2D
Method Detail

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.