public class JtsHelper extends Object
| Constructor and Description |
|---|
JtsHelper()
|
| Modifier and Type | Method and Description |
|---|---|
static LinearRing |
toLinearRing(List
Create a LinearRing from two lists of coordinates.
|
static LinearRing |
toLinearRing(TDoubleList
Create a LinearRing from two lists of coordinates.
|
static LineString |
toLineString(List
Create a LineString from the denoted list of coordinates.
|
static LineString |
toLineString(TDoubleList
Create a LineString from the denoted list of coordinates.
|
public static LineStringtoLineString(List <Double > xs, List <Double > ys)
xs - the x values.
ys - the y values.
public static LineStringtoLineString(TDoubleList xs, TDoubleList ys)
xs - the x values.
ys - the y values.
public static LinearRingtoLinearRing(List <Double > xs, List <Double > ys, boolean doublePoint)
xs - the list of x-coordinates.
ys - the list of y-coordinates.
doublePoint - whether the first point is explicitly contained in the lists a second time as the last point.
public static LinearRingtoLinearRing(TDoubleList xs, TDoubleList ys, boolean doublePoint)
xs - the list of x-coordinates.
ys - the list of y-coordinates.
doublePoint - whether the first point is explicitly contained in the lists a second time as the last point.