Class Coordinates
java.lang.Object
org.locationtech.jts.geom.Coordinates
Useful utility functions for handling Coordinate objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Coordinatecreate(int dimension) Factory method providing access to common Coordinate implementations.static Coordinatecreate(int dimension, int measures) Factory method providing access to common Coordinate implementations.static intdimension(Coordinate coordinate) Determine dimension based on subclass ofCoordinate.static booleanhasZ(Coordinate coordinate) Check if coordinate can store Z valye, based on subclass ofCoordinate.static intmeasures(Coordinate coordinate) Determine number of measures based on subclass ofCoordinate.
-
Constructor Details
-
Coordinates
public Coordinates()
-
-
Method Details
-
create
Factory method providing access to common Coordinate implementations.- Parameters:
dimension-- Returns:
- created coordinate
-
create
Factory method providing access to common Coordinate implementations.- Parameters:
dimension-measures-- Returns:
- created coordinate
-
dimension
Determine dimension based on subclass ofCoordinate.- Parameters:
coordinate- supplied coordinate- Returns:
- number of ordinates recorded
-
hasZ
Check if coordinate can store Z valye, based on subclass ofCoordinate.- Parameters:
coordinate- supplied coordinate- Returns:
- true if setZ is available
-
measures
Determine number of measures based on subclass ofCoordinate.- Parameters:
coordinate- supplied coordinate- Returns:
- number of measures recorded
-