public class DefaultCartesianCS extends DefaultAffineCS implements CartesianCS
CartesianCS
shall have one, two, or three axis.
Used with CRS type(s) |
---|
Geocentric ,
Projected ,
Engineering ,
Image
|
DefaultAffineCS
,
Serialized FormModifier and Type | Field and Description |
---|---|
static DefaultCartesianCS |
DISPLAY
|
static DefaultCartesianCS |
GENERIC_2D
|
static DefaultCartesianCS |
GENERIC_3D
|
static DefaultCartesianCS |
GEOCENTRIC
|
static DefaultCartesianCS |
GRID
|
static DefaultCartesianCS |
PROJECTED
|
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
SINGLE_LINE
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Constructor and Description |
---|
DefaultCartesianCS(CartesianCS cs)
Constructs a new coordinate system with the same values than the specified one.
|
DefaultCartesianCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1)
Constructs a two-dimensional coordinate system from a set of properties.
|
DefaultCartesianCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1,
CoordinateSystemAxis axis2)
Constructs a three-dimensional coordinate system from a set of properties.
|
DefaultCartesianCS(String name,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1)
Constructs a two-dimensional coordinate system from a name.
|
DefaultCartesianCS(String name,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1,
CoordinateSystemAxis axis2)
Constructs a three-dimensional coordinate system from a name.
|
Modifier and Type | Method and Description |
---|---|
Measure |
distance(double[] coord1,
double[] coord2)
Computes the distance between two points.
|
DefaultCartesianCS |
usingUnit(Unit<?> unit)
Returns a new coordinate system with the same properties than the current one except for axis
units.
|
isCompatibleDirection, isCompatibleUnit
equals, formatWKT, getAxis, getDimension, hashCode, standard, swapAndScaleAxis
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatches
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
getAxis, getDimension
getAlias, getIdentifiers, getName, getRemarks, toWKT
public static DefaultCartesianCS PROJECTED
public static DefaultCartesianCS GEOCENTRIC
DefaultSphericalCS.GEOCENTRIC
public static DefaultCartesianCS GENERIC_2D
public static DefaultCartesianCS GENERIC_3D
public static DefaultCartesianCS GRID
public static DefaultCartesianCS DISPLAY
public DefaultCartesianCS(CartesianCS cs)
cs
- The coordinate system to copy.public DefaultCartesianCS(String name, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1)
name
- The coordinate system name.axis0
- The first axis.axis1
- The second axis.public DefaultCartesianCS(String name, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2)
name
- The coordinate system name.axis0
- The first axis.axis1
- The second axis.axis2
- The third axis.public DefaultCartesianCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1)
properties
- Set of properties. Should contains at least "name"
.axis0
- The first axis.axis1
- The second axis.public DefaultCartesianCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2)
properties
- Set of properties. Should contains at least "name"
.axis0
- The first axis.axis1
- The second axis.axis2
- The third axis.public Measure distance(double[] coord1, double[] coord2) throws MismatchedDimensionException
distance
in class AbstractCS
coord1
- Coordinates of the first point.coord2
- Coordinates of the second point.coord1
and coord2
.MismatchedDimensionException
- if a coordinate doesn't have the expected dimension.public DefaultCartesianCS usingUnit(Unit<?> unit) throws IllegalArgumentException
unit
- The unit for the new axis.IllegalArgumentException
- If the specified unit is incompatible with the expected one.Copyright © 1996–2019 Geotools. All rights reserved.