org.cts.op
Class MemorizeCoordinate

java.lang.Object
  extended by org.cts.IdentifiableComponent
      extended by org.cts.op.AbstractCoordinateOperation
          extended by org.cts.op.MemorizeCoordinate
All Implemented Interfaces:
Identifiable, CoordinateOperation

public class MemorizeCoordinate
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

Field Summary
static CoordinateOperation memoX
           
static CoordinateOperation memoY
           
static CoordinateOperation memoZ
           
 
Fields inherited from class org.cts.op.AbstractCoordinateOperation
precision
 
Fields inherited from interface org.cts.Identifiable
DEFAULT, LOCAL, UNKNOWN
 
Constructor Summary
MemorizeCoordinate(int index)
          Creates a new CoordinateOperation increasing (resp decreasing) the coord size by length.
 
Method Summary
 double[] transform(double[] coord)
          Add a fourth coordinate, to save a value.
 
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

memoX

public static CoordinateOperation memoX

memoY

public static CoordinateOperation memoY

memoZ

public static CoordinateOperation memoZ
Constructor Detail

MemorizeCoordinate

public MemorizeCoordinate(int index)
Creates a new CoordinateOperation increasing (resp decreasing) the coord size by length.

Parameters:
dim - final dimension of the new coordinate
Method Detail

transform

public double[] transform(double[] coord)
                   throws IllegalCoordinateException
Add a fourth coordinate, to save a value.

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.