public class CoordinatesBuilder
extends java.lang.Object
Coordinate
elements, arrays or collections.Constructor and Description |
---|
CoordinatesBuilder() |
Modifier and Type | Method and Description |
---|---|
java.util.List<com.vividsolutions.jts.geom.Coordinate> |
build() |
CoordinatesBuilder |
close()
Makes a closed ring out of the current coordinates by adding the starting point as the end point.
|
CoordinatesBuilder |
coordinate(com.vividsolutions.jts.geom.Coordinate coordinate)
Add a new coordinate to the collection
|
CoordinatesBuilder |
coordinate(double longitude,
double latitude)
Add a new coordinate to the collection
|
CoordinatesBuilder |
coordinates(java.util.Collection<? extends com.vividsolutions.jts.geom.Coordinate> coordinates)
Add a collection of coordinates to the current coordinates
|
CoordinatesBuilder |
coordinates(com.vividsolutions.jts.geom.Coordinate... coordinates)
Add an array of coordinates to the current coordinates
|
public CoordinatesBuilder coordinate(com.vividsolutions.jts.geom.Coordinate coordinate)
coordinate
- the coordinate to addpublic CoordinatesBuilder coordinate(double longitude, double latitude)
longitude
- longitude of the coordinatelatitude
- latitude of the coordinatepublic CoordinatesBuilder coordinates(com.vividsolutions.jts.geom.Coordinate... coordinates)
coordinates
- array of Coordinate
s to addpublic CoordinatesBuilder coordinates(java.util.Collection<? extends com.vividsolutions.jts.geom.Coordinate> coordinates)
coordinates
- collection of Coordinate
s to addpublic CoordinatesBuilder close()
public java.util.List<com.vividsolutions.jts.geom.Coordinate> build()