public class CoordinateSwitch extends AbstractCoordinateOperation
| Modifier and Type | Field and Description |
|---|---|
static CoordinateSwitch |
SWITCH_LAT_LON
Switch the two first value of a coordinate.
|
precisionDEFAULT, LOCAL, UNKNOWN| Constructor and Description |
|---|
CoordinateSwitch(int pos1,
int pos2)
Creates a new operation to switch coord pos1 and coord pos2.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Returns true if o is equals to
this operation. |
CoordinateOperation |
inverse()
Creates the inverse CoordinateOperation.
|
double[] |
transform(double[] coord)
Change ordinate at pos1 with ordinate at pos2.
|
getPrecision, isIdentityaddAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getComponent, getIdentifier, getName, getRemarks, getShortName, hashCode, setIdentifier, setRemarks, setShortName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getName, getRemarks, getShortName, setRemarks, setShortNamepublic static final CoordinateSwitch SWITCH_LAT_LON
public CoordinateSwitch(int pos1,
int pos2)
pos1 - position of the ordinate to switch to pos2pos2 - position of the ordinate to switch to pos1public double[] transform(double[] coord)
throws IllegalCoordinateException
transform in interface CoordinateOperationtransform in class AbstractCoordinateOperationcoord - is an array containing one, two or three ordinatesIllegalCoordinateException - if coord is not
compatible with this CoordinateOperation.public CoordinateOperation inverse()
inverse in interface CoordinateOperationinverse in class AbstractCoordinateOperationpublic boolean equals(Object o)
this operation.equals in class IdentifiableComponento - The object to compare toCopyright © 2019 CNRS. All rights reserved.