Uses of Interface
org.locationtech.jts.geom.CoordinateSequence
-
Packages that use CoordinateSequence Package Description org.locationtech.jts.algorithm Contains classes and interfaces implementing fundamental computational geometry algorithms.org.locationtech.jts.algorithm.distance Classes to compute distance metrics between geometries.org.locationtech.jts.geom Contains theGeometry
interface hierarchy and supporting classes.org.locationtech.jts.geom.impl Implementations of interfaces for geometric structures.org.locationtech.jts.geom.util Provides classes that parse and modify Geometry objects.org.locationtech.jts.io Contains the interfaces for converting JTS objects to and from other formats.org.locationtech.jts.operation.buffer.validate Classes to perform validation of the results of buffer operations.org.locationtech.jts.operation.distance Provides classes for computing the distance between geometriesorg.locationtech.jts.operation.distance3d org.locationtech.jts.precision Provides classes for analyzing and manipulating the precision of Geometries.org.locationtech.jtslab.geom.util -
-
Uses of CoordinateSequence in org.locationtech.jts.algorithm
Methods in org.locationtech.jts.algorithm with parameters of type CoordinateSequence Modifier and Type Method Description static boolean
Orientation. isCCW(CoordinateSequence ring)
Computes whether a ring defined by anCoordinateSequence
is oriented counter-clockwise.static boolean
PointLocation. isOnLine(Coordinate p, CoordinateSequence line)
Tests whether a point lies on the line defined by aCoordinateSequence
.static double
CGAlgorithms. length(CoordinateSequence pts)
Deprecated.Computes the length of a linestring specified by a sequence of points.static int
RayCrossingCounter. locatePointInRing(Coordinate p, CoordinateSequence ring)
Determines theLocation
of a point in a ring.static double
Length. ofLine(CoordinateSequence pts)
Computes the length of a linestring specified by a sequence of points.static double
Area. ofRing(CoordinateSequence ring)
Computes the area for a ring.static double
Area. ofRingSigned(CoordinateSequence ring)
Computes the signed area for a ring.static double
CGAlgorithms. signedArea(CoordinateSequence ring)
Deprecated.Computes the signed area for a ring. -
Uses of CoordinateSequence in org.locationtech.jts.algorithm.distance
Methods in org.locationtech.jts.algorithm.distance with parameters of type CoordinateSequence Modifier and Type Method Description void
DiscreteHausdorffDistance.MaxDensifiedByFractionDistanceFilter. filter(CoordinateSequence seq, int index)
-
Uses of CoordinateSequence in org.locationtech.jts.geom
Methods in org.locationtech.jts.geom that return CoordinateSequence Modifier and Type Method Description CoordinateSequence
CoordinateSequence. copy()
Returns a deep copy of this collection.CoordinateSequence
CoordinateSequenceFactory. create(int size, int dimension)
Creates aCoordinateSequence
of the specified size and dimension.default CoordinateSequence
CoordinateSequenceFactory. create(int size, int dimension, int measures)
Creates aCoordinateSequence
of the specified size and dimension with measure support.CoordinateSequence
CoordinateSequenceFactory. create(Coordinate[] coordinates)
Returns aCoordinateSequence
based on the given array.CoordinateSequence
CoordinateSequenceFactory. create(CoordinateSequence coordSeq)
Creates aCoordinateSequence
which is a copy of the givenCoordinateSequence
.static CoordinateSequence
CoordinateSequences. ensureValidRing(CoordinateSequenceFactory fact, CoordinateSequence seq)
Ensures that a CoordinateSequence forms a valid ring, returning a new closed sequence of the correct length if required.static CoordinateSequence
CoordinateSequences. extend(CoordinateSequenceFactory fact, CoordinateSequence seq, int size)
CoordinateSequence
LineString. getCoordinateSequence()
CoordinateSequence
Point. getCoordinateSequence()
Methods in org.locationtech.jts.geom with parameters of type CoordinateSequence Modifier and Type Method Description static void
CoordinateSequences. copy(CoordinateSequence src, int srcPos, CoordinateSequence dest, int destPos, int length)
Copies a section of aCoordinateSequence
to anotherCoordinateSequence
.static void
CoordinateSequences. copyCoord(CoordinateSequence src, int srcPos, CoordinateSequence dest, int destPos)
Copies a coordinate of aCoordinateSequence
to anotherCoordinateSequence
.CoordinateSequence
CoordinateSequenceFactory. create(CoordinateSequence coordSeq)
Creates aCoordinateSequence
which is a copy of the givenCoordinateSequence
.LinearRing
GeometryFactory. createLinearRing(CoordinateSequence coordinates)
Creates aLinearRing
using the givenCoordinateSequence
.LineString
GeometryFactory. createLineString(CoordinateSequence coordinates)
Creates a LineString using the given CoordinateSequence.MultiPoint
GeometryFactory. createMultiPoint(CoordinateSequence coordinates)
Creates aMultiPoint
using the points in the givenCoordinateSequence
.Point
GeometryFactory. createPoint(CoordinateSequence coordinates)
Creates a Point using the given CoordinateSequence; a null or empty CoordinateSequence will create an empty Point.Polygon
GeometryFactory. createPolygon(CoordinateSequence shell)
Constructs aPolygon
with the given exterior boundary.static CoordinateSequence
CoordinateSequences. ensureValidRing(CoordinateSequenceFactory fact, CoordinateSequence seq)
Ensures that a CoordinateSequence forms a valid ring, returning a new closed sequence of the correct length if required.OctagonalEnvelope
OctagonalEnvelope. expandToInclude(CoordinateSequence seq)
static CoordinateSequence
CoordinateSequences. extend(CoordinateSequenceFactory fact, CoordinateSequence seq, int size)
void
CoordinateSequenceFilter. filter(CoordinateSequence seq, int i)
Performs an operation on a coordinate in aCoordinateSequence
.static int
CoordinateSequences. indexOf(Coordinate coordinate, CoordinateSequence seq)
Returns the index ofcoordinate
in aCoordinateSequence
The first position is 0; the second, 1; etc.static boolean
CoordinateSequences. isEqual(CoordinateSequence cs1, CoordinateSequence cs2)
Tests whether twoCoordinateSequence
s are equal.static boolean
CoordinateSequences. isRing(CoordinateSequence seq)
Tests whether aCoordinateSequence
forms a validLinearRing
, by checking the sequence length and closure (whether the first and last points are identical in 2D).static Coordinate
CoordinateSequences. minCoordinate(CoordinateSequence seq)
Returns the minimum coordinate, using the usual lexicographic comparison.static int
CoordinateSequences. minCoordinateIndex(CoordinateSequence seq)
Returns the index of the minimum coordinate of the whole coordinate sequence, using the usual lexicographic comparison.static int
CoordinateSequences. minCoordinateIndex(CoordinateSequence seq, int from, int to)
Returns the index of the minimum coordinate of a part of the coordinate sequence (defined byfrom
andto
, using the usual lexicographic comparison.static void
CoordinateSequences. reverse(CoordinateSequence seq)
Reverses the coordinates in a sequence in-place.static void
CoordinateSequences. scroll(CoordinateSequence seq, int indexOfFirstCoordinate)
Shifts the positions of the coordinates until the coordinate atfirstCoordinateIndex
is first.static void
CoordinateSequences. scroll(CoordinateSequence seq, int indexOfFirstCoordinate, boolean ensureRing)
Shifts the positions of the coordinates until the coordinate atfirstCoordinateIndex
is first.static void
CoordinateSequences. scroll(CoordinateSequence seq, Coordinate firstCoordinate)
Shifts the positions of the coordinates untilfirstCoordinate
is first.static void
CoordinateSequences. swap(CoordinateSequence seq, int i, int j)
Swaps two coordinates in a sequence.static java.lang.String
CoordinateSequences. toString(CoordinateSequence cs)
Creates a string representation of aCoordinateSequence
.Constructors in org.locationtech.jts.geom with parameters of type CoordinateSequence Constructor Description LinearRing(CoordinateSequence points, GeometryFactory factory)
Constructs aLinearRing
with the vertices specified by the givenCoordinateSequence
.LineString(CoordinateSequence points, GeometryFactory factory)
Constructs aLineString
with the given points.Point(CoordinateSequence coordinates, GeometryFactory factory)
-
Uses of CoordinateSequence in org.locationtech.jts.geom.impl
Classes in org.locationtech.jts.geom.impl that implement CoordinateSequence Modifier and Type Class Description class
CoordinateArraySequence
ACoordinateSequence
backed by an array ofCoordinate
s.class
PackedCoordinateSequence
ACoordinateSequence
implementation based on a packed arrays.static class
PackedCoordinateSequence.Double
Packed coordinate sequence implementation based on doublesstatic class
PackedCoordinateSequence.Float
Packed coordinate sequence implementation based on floatsMethods in org.locationtech.jts.geom.impl that return CoordinateSequence Modifier and Type Method Description CoordinateSequence
CoordinateArraySequenceFactory. create(int size, int dimension)
The created sequence dimension is clamped to be <= 3.CoordinateSequence
CoordinateArraySequenceFactory. create(int size, int dimension, int measures)
CoordinateSequence
CoordinateArraySequenceFactory. create(Coordinate[] coordinates)
Returns aCoordinateArraySequence
based on the given array (the array is not copied).CoordinateSequence
CoordinateArraySequenceFactory. create(CoordinateSequence coordSeq)
CoordinateSequence
PackedCoordinateSequenceFactory. create(double[] packedCoordinates, int dimension)
Creates a packed coordinate sequence of typePackedCoordinateSequenceFactory.DOUBLE
from the provided array using the given coordinate dimension and a measure count of 0.CoordinateSequence
PackedCoordinateSequenceFactory. create(double[] packedCoordinates, int dimension, int measures)
Creates a packed coordinate sequence of typePackedCoordinateSequenceFactory.DOUBLE
from the provided array using the given coordinate dimension and measure count.CoordinateSequence
PackedCoordinateSequenceFactory. create(float[] packedCoordinates, int dimension)
Creates a packed coordinate sequence of typePackedCoordinateSequenceFactory.FLOAT
from the provided array.CoordinateSequence
PackedCoordinateSequenceFactory. create(float[] packedCoordinates, int dimension, int measures)
Creates a packed coordinate sequence of typePackedCoordinateSequenceFactory.FLOAT
from the provided array.CoordinateSequence
PackedCoordinateSequenceFactory. create(int size, int dimension)
CoordinateSequence
PackedCoordinateSequenceFactory. create(int size, int dimension, int measures)
CoordinateSequence
PackedCoordinateSequenceFactory. create(Coordinate[] coordinates)
CoordinateSequence
PackedCoordinateSequenceFactory. create(CoordinateSequence coordSeq)
Methods in org.locationtech.jts.geom.impl with parameters of type CoordinateSequence Modifier and Type Method Description CoordinateSequence
CoordinateArraySequenceFactory. create(CoordinateSequence coordSeq)
CoordinateSequence
PackedCoordinateSequenceFactory. create(CoordinateSequence coordSeq)
Constructors in org.locationtech.jts.geom.impl with parameters of type CoordinateSequence Constructor Description CoordinateArraySequence(CoordinateSequence coordSeq)
Creates a new sequence based on a deep copy of the givenCoordinateSequence
. -
Uses of CoordinateSequence in org.locationtech.jts.geom.util
Methods in org.locationtech.jts.geom.util that return CoordinateSequence Modifier and Type Method Description abstract CoordinateSequence
GeometryEditor.CoordinateSequenceOperation. edit(CoordinateSequence coordSeq, Geometry geometry)
Edits aCoordinateSequence
from aGeometry
.Methods in org.locationtech.jts.geom.util with parameters of type CoordinateSequence Modifier and Type Method Description abstract CoordinateSequence
GeometryEditor.CoordinateSequenceOperation. edit(CoordinateSequence coordSeq, Geometry geometry)
Edits aCoordinateSequence
from aGeometry
.void
AffineTransformation. filter(CoordinateSequence seq, int i)
Transforms the i'th coordinate in the input sequencevoid
AffineTransformation. transform(CoordinateSequence seq, int i)
Applies this transformation to the i'th coordinate in the given CoordinateSequence. -
Uses of CoordinateSequence in org.locationtech.jts.io
Methods in org.locationtech.jts.io with parameters of type CoordinateSequence Modifier and Type Method Description static java.lang.String
WKTWriter. toLineString(CoordinateSequence seq)
Generates the WKT for a LINESTRING specified by aCoordinateSequence
. -
Uses of CoordinateSequence in org.locationtech.jts.operation.buffer.validate
Methods in org.locationtech.jts.operation.buffer.validate with parameters of type CoordinateSequence Modifier and Type Method Description void
BufferCurveMaximumDistanceFinder.MaxMidpointDistanceFilter. filter(CoordinateSequence seq, int index)
-
Uses of CoordinateSequence in org.locationtech.jts.operation.distance
Constructors in org.locationtech.jts.operation.distance with parameters of type CoordinateSequence Constructor Description FacetSequence(CoordinateSequence pts, int start)
Creates a new sequence for a single point from aCoordinateSequence
.FacetSequence(CoordinateSequence pts, int start, int end)
Creates a new sequence of facets based on aCoordinateSequence
.FacetSequence(Geometry geom, CoordinateSequence pts, int start, int end)
Creates a new sequence of facets based on aCoordinateSequence
contained in the givenGeometry
. -
Uses of CoordinateSequence in org.locationtech.jts.operation.distance3d
Classes in org.locationtech.jts.operation.distance3d that implement CoordinateSequence Modifier and Type Class Description class
AxisPlaneCoordinateSequence
A CoordinateSequence wrapper which projects 3D coordinates into one of the three Cartesian axis planes, using the standard orthonormal projection (i.e.Methods in org.locationtech.jts.operation.distance3d that return CoordinateSequence Modifier and Type Method Description static CoordinateSequence
AxisPlaneCoordinateSequence. projectToXY(CoordinateSequence seq)
Creates a wrapper projecting to the XY plane.static CoordinateSequence
AxisPlaneCoordinateSequence. projectToXZ(CoordinateSequence seq)
Creates a wrapper projecting to the XZ plane.static CoordinateSequence
AxisPlaneCoordinateSequence. projectToYZ(CoordinateSequence seq)
Creates a wrapper projecting to the YZ plane.Methods in org.locationtech.jts.operation.distance3d with parameters of type CoordinateSequence Modifier and Type Method Description static CoordinateSequence
AxisPlaneCoordinateSequence. projectToXY(CoordinateSequence seq)
Creates a wrapper projecting to the XY plane.static CoordinateSequence
AxisPlaneCoordinateSequence. projectToXZ(CoordinateSequence seq)
Creates a wrapper projecting to the XZ plane.static CoordinateSequence
AxisPlaneCoordinateSequence. projectToYZ(CoordinateSequence seq)
Creates a wrapper projecting to the YZ plane. -
Uses of CoordinateSequence in org.locationtech.jts.precision
Methods in org.locationtech.jts.precision with parameters of type CoordinateSequence Modifier and Type Method Description void
CoordinatePrecisionReducerFilter. filter(CoordinateSequence seq, int i)
Rounds the Coordinates in the sequence to match the PrecisionModel -
Uses of CoordinateSequence in org.locationtech.jtslab.geom.util
Methods in org.locationtech.jtslab.geom.util that return CoordinateSequence Modifier and Type Method Description abstract CoordinateSequence
GeometryEditorEx.CoordinateSequenceOperation. edit(CoordinateSequence coordSeq, Geometry geometry, GeometryFactory targetFactory)
Edits aCoordinateSequence
from aGeometry
.Methods in org.locationtech.jtslab.geom.util with parameters of type CoordinateSequence Modifier and Type Method Description abstract CoordinateSequence
GeometryEditorEx.CoordinateSequenceOperation. edit(CoordinateSequence coordSeq, Geometry geometry, GeometryFactory targetFactory)
Edits aCoordinateSequence
from aGeometry
.
-