public class Positions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Positions.CanMakeG2D |
static class |
Positions.CanMakeG2DM |
static class |
Positions.CanMakeG3D |
static class |
Positions.CanMakeG3DM |
static class |
Positions.CanMakeP2D |
static class |
Positions.CanMakeP2DM |
static class |
Positions.CanMakeP3D |
static class |
Positions.CanMakeP3DM |
| Modifier and Type | Field and Description |
|---|---|
static Map<Class<?>,PositionFactory<?>> |
registeredFactoriesMap |
| Constructor and Description |
|---|
Positions() |
| Modifier and Type | Method and Description |
|---|---|
static <P extends Position> |
collect(Class<P> positionType,
P... positions) |
static <Q extends Position,P extends Position> |
copy(PositionSequence<Q> source,
Class<P> targetPosClass)
Copies the source positions to a new PositionSequence.
|
static <Q extends Position,P extends Position> |
copy(PositionSequence<Q> source,
Class<P> targetPosClass,
double defaultValue)
Copies the source positions to a new PositionSequence.
|
static <P extends Position> |
getFactoryFor(Class<P> pClass) |
static <P extends Position> |
mkPosition(Class<P> pClass,
double... coordinates)
Factory method for
Positions in the reference system. |
static <P extends Position> |
mkPosition(CoordinateReferenceSystem<P> crs,
double... coordinates) |
public static Map<Class<?>,PositionFactory<?>> registeredFactoriesMap
public static <P extends Position> P mkPosition(Class<P> pClass, double... coordinates)
Positions in the reference system.
The coordinates array should be in normalized order. See
Positioncoordinates - the coordinates of the positionPosition with the specified coordinates.public static <P extends Position> P mkPosition(CoordinateReferenceSystem<P> crs, double... coordinates)
public static <P extends Position> PositionSequence<P> collect(Class<P> positionType, P... positions)
public static <P extends Position> PositionFactory<P> getFactoryFor(Class<P> pClass)
public static <Q extends Position,P extends Position> PositionSequence<P> copy(PositionSequence<Q> source, Class<P> targetPosClass, double defaultValue)
The coordinates are taken as-is. If the target coordinate reference systems has a larger coordinate dimensions then the source, the specified defaultValue is used for the missing coordinate values.
P - source - targetPosClass - target type of PositiondefaultValue - default coordinate valuepublic static <Q extends Position,P extends Position> PositionSequence<P> copy(PositionSequence<Q> source, Class<P> targetPosClass)
The coordinates are taken as-is. If the target coordinate reference systems has a larger coordinate dimensions then the source, Double.NaN is used for the missing coordinate values.
P - source - targetPosClass - target type of PositionCopyright © 2021 geolatte.org. All rights reserved.