public interface LineString extends Geometry
LineString
.
This is a curve in a two-dimensional XY-plane, represented by a set of points (with linear interpolation between them).
The default implementation returned by the driver is immutable.
Modifier and Type | Method and Description |
---|---|
static LineString |
fromGeoJson(String source)
Creates a line string from a GeoJSON
LineString representation.
|
static LineString |
fromPoints(Point p1,
Point p2,
Point... pn)
Creates a line string from two or more points.
|
static LineString |
fromWellKnownBinary(ByteBuffer source)
Creates a line string from its Well-known Binary
(WKB) representation.
|
static LineString |
fromWellKnownText(String source)
Creates a line string from its Well-known Text (WKT) representation.
|
List<Point> |
getPoints() |
asGeoJson, asWellKnownBinary, asWellKnownText, contains
@NonNull static LineString fromWellKnownText(@NonNull String source)
source
- the Well-known Text representation to parse.IllegalArgumentException
- if the string does not contain a valid Well-known Text
representation.@NonNull static LineString fromWellKnownBinary(@NonNull ByteBuffer source)
source
- the Well-known Binary representation to parse.IllegalArgumentException
- if the provided ByteBuffer
does not contain a valid
Well-known Binary representation.@NonNull static LineString fromGeoJson(@NonNull String source)
source
- the GeoJSON
LineString representation to parse.IllegalArgumentException
- if the string does not contain a valid GeoJSON LineString
representation.@NonNull static LineString fromPoints(@NonNull Point p1, @NonNull Point p2, @NonNull Point... pn)
Copyright © 2017–2024. All rights reserved.