public class FacetSequence extends Object
Geometry
specified by a subsequence of a CoordinateSequence
.Constructor and Description |
---|
FacetSequence(CoordinateSequence pts,
int start)
Creates a new sequence for a single point from a
CoordinateSequence . |
FacetSequence(CoordinateSequence pts,
int start,
int end)
Creates a new sequence of facets based on a
CoordinateSequence . |
FacetSequence(Geometry geom,
CoordinateSequence pts,
int start,
int end)
Creates a new sequence of facets based on a
CoordinateSequence
contained in the given Geometry . |
Modifier and Type | Method and Description |
---|---|
double |
distance(FacetSequence facetSeq)
Computes the distance between this and another
FacetSequence.
|
Coordinate |
getCoordinate(int index) |
Envelope |
getEnvelope() |
boolean |
isPoint() |
GeometryLocation[] |
nearestLocations(FacetSequence facetSeq)
Computes the locations of the nearest points between this sequence
and another sequence.
|
int |
size() |
String |
toString() |
public FacetSequence(Geometry geom, CoordinateSequence pts, int start, int end)
CoordinateSequence
contained in the given Geometry
.geom
- the geometry containing the facetspts
- the sequence containing the facet pointsstart
- the index of the start pointend
- the index of the end point + 1public FacetSequence(CoordinateSequence pts, int start, int end)
CoordinateSequence
.pts
- the sequence containing the facet pointsstart
- the index of the start pointend
- the index of the end point + 1public FacetSequence(CoordinateSequence pts, int start)
CoordinateSequence
.pts
- the sequence containing the facet pointstart
- the index of the pointpublic Envelope getEnvelope()
public int size()
public Coordinate getCoordinate(int index)
public boolean isPoint()
public double distance(FacetSequence facetSeq)
facetSeq
- the sequence to compute the distance topublic GeometryLocation[] nearestLocations(FacetSequence facetSeq)
GeometryLocation
s for the nearest pointsCopyright © 2020. All rights reserved.