Package org.locationtech.jts.geom
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 Coordinate
create
(int dimension) Factory method providing access to common Coordinate implementations.static Coordinate
create
(int dimension, int measures) Factory method providing access to common Coordinate implementations.static int
dimension
(Coordinate coordinate) Determine dimension based on subclass ofCoordinate
.static boolean
hasZ
(Coordinate coordinate) Check if coordinate can store Z valye, based on subclass ofCoordinate
.static int
measures
(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
-