org.cts.op
Class LoadMemorizeCoordinate
java.lang.Object
org.cts.IdentifiableComponent
org.cts.op.AbstractCoordinateOperation
org.cts.op.LoadMemorizeCoordinate
- All Implemented Interfaces:
- Identifiable, CoordinateOperation
public class LoadMemorizeCoordinate
- extends AbstractCoordinateOperation
Add a fourth dimension to save one of the other coordinates. It is used in
CoumpoundCRS transformation to save the altitude value.
- Author:
- Michaƫl Michaud
|
Constructor Summary |
LoadMemorizeCoordinate(int index)
Creates a new CoordinateOperation increasing (resp decreasing) the coord
size by length. |
| 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 |
loadX
public static CoordinateOperation loadX
loadY
public static CoordinateOperation loadY
loadZ
public static CoordinateOperation loadZ
LoadMemorizeCoordinate
public LoadMemorizeCoordinate(int index)
- Creates a new CoordinateOperation increasing (resp decreasing) the coord
size by length.
- Parameters:
dim - final dimension of the new coordinate
getIndexSaved
public int getIndexSaved()
transform
public double[] transform(double[] coord)
throws IllegalCoordinateException
- Load the last memorized coordinates
- 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.