org.cts.op
Class LoadMemorizeCoordinate

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

Field Summary
static CoordinateOperation loadX
           
static CoordinateOperation loadY
           
static CoordinateOperation loadZ
           
 
Fields inherited from class org.cts.op.AbstractCoordinateOperation
precision
 
Fields inherited from interface org.cts.Identifiable
DEFAULT, LOCAL, UNKNOWN
 
Constructor Summary
LoadMemorizeCoordinate(int index)
          Creates a new CoordinateOperation increasing (resp decreasing) the coord size by length.
 
Method Summary
 int getIndexSaved()
           
 double[] transform(double[] coord)
          Load the last memorized coordinates
 
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

loadX

public static CoordinateOperation loadX

loadY

public static CoordinateOperation loadY

loadZ

public static CoordinateOperation loadZ
Constructor Detail

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
Method Detail

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.