public class CoordinateRounding extends AbstractCoordinateOperation
| Modifier and Type | Field and Description |
|---|---|
static CoordinateRounding |
CENTIMETER
Round the coordinates to centimeter value.
|
static CoordinateRounding |
DECIMETER
Round the coordinates to decimeter value.
|
static CoordinateRounding |
KILOMETER
Round the coordinates to kilometer value.
|
static CoordinateRounding |
METER
Round the coordinates to meter value.
|
static CoordinateRounding |
MILLIMETER
Round the coordinates to millimeter value.
|
precisionDEFAULT, LOCAL, UNKNOWN| Modifier and Type | Method and Description |
|---|---|
static CoordinateRounding |
createCoordinateRoundingOperation(double resolution)
Creates a coordinate rounding operation from the smallest representable
value.
|
static CoordinateRounding |
createCoordinateRoundingOperationFromDecimalPlaces(int decimalPlaces)
Creates a coordinate rounding operation from a decimal place number.
|
double[] |
transform(double[] coord)
Returns a coordinate representing the same point as coord but with
coordinates rounded as specified.
|
getPrecision, inverse, isIdentityaddAlias, addRemark, equals, 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 CoordinateRounding MILLIMETER
public static final CoordinateRounding CENTIMETER
public static final CoordinateRounding DECIMETER
public static final CoordinateRounding METER
public static final CoordinateRounding KILOMETER
public 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 static CoordinateRounding createCoordinateRoundingOperationFromDecimalPlaces(int decimalPlaces)
decimalPlaces - number of decimal placespublic static CoordinateRounding createCoordinateRoundingOperation(double resolution)
resolution - smallest representable valueCopyright © 2019 CNRS. All rights reserved.