Uses of Interface
org.locationtech.jts.geom.CoordinateSequence
Packages that use CoordinateSequence
Package
Description
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Classes to compute distance metrics between geometries.
Classes to perform densification on geometries.
Contains the
Geometry
interface hierarchy and supporting classes.Implementations of interfaces for geometric structures.
Provides classes that parse and modify Geometry objects.
Contains the interfaces for converting JTS objects to and from other formats.
Classes to perform validation of the results of buffer operations.
Provides classes for computing the distance between geometries
Classes to perform snapping on geometries to prepare them for overlay operations.
Classes which implement topological predicates optimized for particular kinds of geometries.
Provides classes for analyzing and
manipulating the precision of Geometries.
Classes which implement algorithms for simplifying or generalizing geometries.
Contains support classes for the Java Topology Suite.
-
Uses of CoordinateSequence in org.locationtech.jts.algorithm
Methods in org.locationtech.jts.algorithm with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionstatic 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 CoordinateSequenceModifier and TypeMethodDescriptionvoid
DiscreteHausdorffDistance.MaxDensifiedByFractionDistanceFilter.filter
(CoordinateSequence seq, int index) -
Uses of CoordinateSequence in org.locationtech.jts.densify
Methods in org.locationtech.jts.densify that return CoordinateSequenceModifier and TypeMethodDescriptionprotected CoordinateSequence
Densifier.DensifyTransformer.transformCoordinates
(CoordinateSequence coords, Geometry parent) Methods in org.locationtech.jts.densify with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionprotected CoordinateSequence
Densifier.DensifyTransformer.transformCoordinates
(CoordinateSequence coords, Geometry parent) -
Uses of CoordinateSequence in org.locationtech.jts.geom
Classes in org.locationtech.jts.geom that implement CoordinateSequenceModifier and TypeClassDescription(package private) class
Deprecated.no longer usedFields in org.locationtech.jts.geom declared as CoordinateSequenceModifier and TypeFieldDescriptionprivate CoordinateSequence
Point.coordinates
TheCoordinate
wrapped by thisPoint
.protected CoordinateSequence
LineString.points
The points of thisLineString
.Methods in org.locationtech.jts.geom that return CoordinateSequenceModifier and TypeMethodDescriptionCoordinateSequence.copy()
Returns a deep copy of this collection.CoordinateSequenceFactory.create
(int size, int dimension) Creates aCoordinateSequence
of the specified size and dimension.CoordinateSequenceFactory.create
(Coordinate[] coordinates) Returns aCoordinateSequence
based on the given array.CoordinateSequenceFactory.create
(CoordinateSequence coordSeq) Creates aCoordinateSequence
which is a copy of the givenCoordinateSequence
.DefaultCoordinateSequenceFactory.create
(int size, int dimension) Deprecated.DefaultCoordinateSequenceFactory.create
(Coordinate[] coordinates) Deprecated.Returns a DefaultCoordinateSequence based on the given array (the array is not copied).DefaultCoordinateSequenceFactory.create
(CoordinateSequence coordSeq) Deprecated.private static CoordinateSequence
CoordinateSequences.createClosedRing
(CoordinateSequenceFactory fact, CoordinateSequence seq, int size) 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) LineString.getCoordinateSequence()
Point.getCoordinateSequence()
Methods in org.locationtech.jts.geom with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionprotected int
CoordinateSequenceComparator.compareCoordinate
(CoordinateSequence s1, CoordinateSequence s2, int i, int dimension) Compares the same coordinate of twoCoordinateSequence
s along the given number of dimensions.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
.CoordinateSequenceFactory.create
(CoordinateSequence coordSeq) Creates aCoordinateSequence
which is a copy of the givenCoordinateSequence
.DefaultCoordinateSequenceFactory.create
(CoordinateSequence coordSeq) Deprecated.private static CoordinateSequence
CoordinateSequences.createClosedRing
(CoordinateSequenceFactory fact, CoordinateSequence seq, int size) GeometryFactory.createLinearRing
(CoordinateSequence coordinates) Creates aLinearRing
using the givenCoordinateSequence
.GeometryFactory.createLineString
(CoordinateSequence coordinates) Creates a LineString using the given CoordinateSequence.GeometryFactory.createMultiPoint
(CoordinateSequence coordinates) Creates aMultiPoint
using the points in the givenCoordinateSequence
.GeometryFactory.createPoint
(CoordinateSequence coordinates) Creates a Point using the given CoordinateSequence; a null or empty CoordinateSequence will create an empty Point.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.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
.private void
LineString.init
(CoordinateSequence points) private void
Point.init
(CoordinateSequence coordinates) 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 void
CoordinateSequences.reverse
(CoordinateSequence seq) Reverses the coordinates in a sequence in-place.static void
CoordinateSequences.swap
(CoordinateSequence seq, int i, int j) Swaps two coordinates in a sequence.static String
CoordinateSequences.toString
(CoordinateSequence cs) Creates a string representation of aCoordinateSequence
.Constructors in org.locationtech.jts.geom with parameters of type CoordinateSequenceModifierConstructorDescriptionDefaultCoordinateSequence
(CoordinateSequence coordSeq) Deprecated.Creates a new sequence based on a deep copy of the givenCoordinateSequence
.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 CoordinateSequenceModifier and TypeClassDescriptionclass
ACoordinateSequence
backed by an array ofCoordinate
s.class
ACoordinateSequence
implementation based on a packed arrays.static class
Packed coordinate sequence implementation based on doublesstatic class
Packed coordinate sequence implementation based on floatsMethods in org.locationtech.jts.geom.impl that return CoordinateSequenceModifier and TypeMethodDescriptionCoordinateArraySequenceFactory.create
(int size, int dimension) The created sequence dimension is clamped to be <= 3.CoordinateArraySequenceFactory.create
(Coordinate[] coordinates) Returns aCoordinateArraySequence
based on the given array (the array is not copied).CoordinateArraySequenceFactory.create
(CoordinateSequence coordSeq) PackedCoordinateSequenceFactory.create
(double[] packedCoordinates, int dimension) PackedCoordinateSequenceFactory.create
(float[] packedCoordinates, int dimension) PackedCoordinateSequenceFactory.create
(int size, int dimension) PackedCoordinateSequenceFactory.create
(Coordinate[] coordinates) PackedCoordinateSequenceFactory.create
(CoordinateSequence coordSeq) Methods in org.locationtech.jts.geom.impl with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionCoordinateArraySequenceFactory.create
(CoordinateSequence coordSeq) PackedCoordinateSequenceFactory.create
(CoordinateSequence coordSeq) Constructors in org.locationtech.jts.geom.impl with parameters of type CoordinateSequenceModifierConstructorDescriptionCoordinateArraySequence
(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 CoordinateSequenceModifier and TypeMethodDescriptionprotected final CoordinateSequence
GeometryTransformer.copy
(CoordinateSequence seq) Convenience method which provides a standard way of copyingCoordinateSequence
sprotected final CoordinateSequence
GeometryTransformer.createCoordinateSequence
(Coordinate[] coords) Convenience method which provides standard way of creating aCoordinateSequence
abstract CoordinateSequence
GeometryEditor.CoordinateSequenceOperation.edit
(CoordinateSequence coordSeq, Geometry geometry) Edits aCoordinateSequence
from aGeometry
.protected CoordinateSequence
GeometryTransformer.transformCoordinates
(CoordinateSequence coords, Geometry parent) Transforms aCoordinateSequence
.Methods in org.locationtech.jts.geom.util with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionprotected final CoordinateSequence
GeometryTransformer.copy
(CoordinateSequence seq) Convenience method which provides a standard way of copyingCoordinateSequence
sabstract 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.protected CoordinateSequence
GeometryTransformer.transformCoordinates
(CoordinateSequence coords, Geometry parent) Transforms aCoordinateSequence
. -
Uses of CoordinateSequence in org.locationtech.jts.io
Methods in org.locationtech.jts.io that return CoordinateSequenceModifier and TypeMethodDescriptionprivate CoordinateSequence
WKBReader.readCoordinateSequence
(int size) private CoordinateSequence
WKBReader.readCoordinateSequenceLineString
(int size) private CoordinateSequence
WKBReader.readCoordinateSequenceRing
(int size) Methods in org.locationtech.jts.io with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionprivate void
WKTWriter.appendCoordinate
(CoordinateSequence seq, int i, Writer writer) Appends the i'th coordinate from the sequence to the writerprivate void
WKTWriter.appendSequenceText
(CoordinateSequence seq, int level, boolean doIndent, Writer writer) Converts aLineString
to <LineString Text> format, then appends it to the writer.static String
WKTWriter.toLineString
(CoordinateSequence seq) Generates the WKT for a LINESTRING specified by aCoordinateSequence
.private void
WKBWriter.writeCoordinate
(CoordinateSequence seq, int index, OutStream os) private void
WKBWriter.writeCoordinateSequence
(CoordinateSequence seq, boolean writeSize, OutStream os) -
Uses of CoordinateSequence in org.locationtech.jts.io.geojson
Methods in org.locationtech.jts.io.geojson that return CoordinateSequenceModifier and TypeMethodDescriptionprivate CoordinateSequence
GeoJsonReader.createCoordinate
(List<Number> ordinates) private CoordinateSequence
GeoJsonReader.createCoordinateSequence
(List<List<Number>> coordinates) Methods in org.locationtech.jts.io.geojson with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionprivate String
GeoJsonWriter.getJsonString
(CoordinateSequence coordinateSequence) -
Uses of CoordinateSequence in org.locationtech.jts.operation.buffer.validate
Methods in org.locationtech.jts.operation.buffer.validate with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionvoid
BufferCurveMaximumDistanceFinder.MaxMidpointDistanceFilter.filter
(CoordinateSequence seq, int index) -
Uses of CoordinateSequence in org.locationtech.jts.operation.distance
Fields in org.locationtech.jts.operation.distance declared as CoordinateSequenceMethods in org.locationtech.jts.operation.distance with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionprivate static void
FacetSequenceTreeBuilder.addFacetSequences
(CoordinateSequence pts, List sections) Constructors in org.locationtech.jts.operation.distance with parameters of type CoordinateSequenceModifierConstructorDescriptionFacetSequence
(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 section based on a CoordinateSequence. -
Uses of CoordinateSequence in org.locationtech.jts.operation.distance3d
Classes in org.locationtech.jts.operation.distance3d that implement CoordinateSequenceModifier and TypeClassDescriptionclass
A CoordinateSequence wrapper which projects 3D coordinates into one of the three Cartesian axis planes, using the standard orthonormal projection (i.e.Fields in org.locationtech.jts.operation.distance3d declared as CoordinateSequenceMethods in org.locationtech.jts.operation.distance3d that return CoordinateSequenceModifier and TypeMethodDescriptionprivate static CoordinateSequence
PlanarPolygon3D.project
(CoordinateSequence seq, int facingPlane) 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 CoordinateSequenceModifier and TypeMethodDescriptionprivate Vector3D
PlanarPolygon3D.averageNormal
(CoordinateSequence seq) Computes an average normal vector from a list of polygon coordinates.private Coordinate
PlanarPolygon3D.averagePoint
(CoordinateSequence seq) Computes a point which is the average of all coordinates in a sequence.private static CoordinateSequence
PlanarPolygon3D.project
(CoordinateSequence seq, int facingPlane) 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.Constructors in org.locationtech.jts.operation.distance3d with parameters of type CoordinateSequenceModifierConstructorDescriptionprivate
AxisPlaneCoordinateSequence
(CoordinateSequence seq, int[] indexMap) -
Uses of CoordinateSequence in org.locationtech.jts.operation.overlay.snap
Methods in org.locationtech.jts.operation.overlay.snap that return CoordinateSequenceModifier and TypeMethodDescriptionprotected CoordinateSequence
SnapTransformer.transformCoordinates
(CoordinateSequence coords, Geometry parent) Methods in org.locationtech.jts.operation.overlay.snap with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionprotected CoordinateSequence
SnapTransformer.transformCoordinates
(CoordinateSequence coords, Geometry parent) -
Uses of CoordinateSequence in org.locationtech.jts.operation.predicate
Fields in org.locationtech.jts.operation.predicate declared as CoordinateSequence -
Uses of CoordinateSequence in org.locationtech.jts.precision
Methods in org.locationtech.jts.precision with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionvoid
CommonBitsRemover.Translater.filter
(CoordinateSequence seq, int i) void
CoordinatePrecisionReducerFilter.filter
(CoordinateSequence seq, int i) Rounds the Coordinates in the sequence to match the PrecisionModelvoid
SimpleMinimumClearance.ComputeMCCoordinateSequenceFilter.filter
(CoordinateSequence seq, int i) -
Uses of CoordinateSequence in org.locationtech.jts.simplify
Methods in org.locationtech.jts.simplify that return CoordinateSequenceModifier and TypeMethodDescriptionprotected CoordinateSequence
DouglasPeuckerSimplifier.DPTransformer.transformCoordinates
(CoordinateSequence coords, Geometry parent) protected CoordinateSequence
TopologyPreservingSimplifier.LineStringTransformer.transformCoordinates
(CoordinateSequence coords, Geometry parent) protected CoordinateSequence
VWSimplifier.VWTransformer.transformCoordinates
(CoordinateSequence coords, Geometry parent) Methods in org.locationtech.jts.simplify with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionprotected CoordinateSequence
DouglasPeuckerSimplifier.DPTransformer.transformCoordinates
(CoordinateSequence coords, Geometry parent) protected CoordinateSequence
TopologyPreservingSimplifier.LineStringTransformer.transformCoordinates
(CoordinateSequence coords, Geometry parent) protected CoordinateSequence
VWSimplifier.VWTransformer.transformCoordinates
(CoordinateSequence coords, Geometry parent) -
Uses of CoordinateSequence in org.locationtech.jts.util
Methods in org.locationtech.jts.util with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionvoid
Debug.SegmentFindingFilter.filter
(CoordinateSequence seq, int i) -
Uses of CoordinateSequence in org.locationtech.jtsexample.geom
Classes in org.locationtech.jtsexample.geom that implement CoordinateSequenceModifier and TypeClassDescriptionclass
Demonstrates how to implement a CoordinateSequence for a new kind of coordinate (anExtendedCoordinate
in this example).Methods in org.locationtech.jtsexample.geom that return CoordinateSequenceModifier and TypeMethodDescriptionExtendedCoordinateSequenceFactory.create
(int size, int dimension) ExtendedCoordinateSequenceFactory.create
(Coordinate[] coordinates) Returns an ExtendedCoordinateSequence based on the given array -- the array is used directly if it is an instance of ExtendedCoordinate[]; otherwise it is copied.ExtendedCoordinateSequenceFactory.create
(CoordinateSequence coordSeq) Methods in org.locationtech.jtsexample.geom with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionstatic ExtendedCoordinate[]
ExtendedCoordinateSequence.copy
(CoordinateSequence coordSeq) ExtendedCoordinateSequenceFactory.create
(CoordinateSequence coordSeq) Constructors in org.locationtech.jtsexample.geom with parameters of type CoordinateSequenceModifierConstructorDescriptionExtendedCoordinateSequence
(CoordinateSequence coordSeq) Constructor that makes a copy of a CoordinateSequence. -
Uses of CoordinateSequence in org.locationtech.jtsexample.io.gml2
Methods in org.locationtech.jtsexample.io.gml2 with parameters of type CoordinateSequence -
Uses of CoordinateSequence in org.locationtech.jtstest.testbuilder.geom
Methods in org.locationtech.jtstest.testbuilder.geom with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionprivate void
GeometryPointLocater.NearestSegmentLocationFilter.checkSegment
(LineString lineStr, CoordinateSequence seq, int i) private void
GeometryPointLocater.NearestSegmentLocationFilter.checkVertex
(LineString lineStr, CoordinateSequence seq, int i) void
AdjacentVertexFinder.AdjacentVertexFilter.filter
(CoordinateSequence seq, int i) void
NearestPointFinder.NearestPointFilter.filter
(CoordinateSequence seq, int i) void
VertexLocater.NearestVertexFilter.filter
(CoordinateSequence seq, int i) void
VertexLocater.NearVerticesFilter.filter
(CoordinateSequence seq, int i) private void
FacetLocater.findLocations
(Stack path, Geometry compGeom, CoordinateSequence seq, List locations) private void
FacetLocater.findSegmentLocations
(Stack path, Geometry compGeom, CoordinateSequence seq, List locations) private void
FacetLocater.findVertexLocations
(Stack path, Geometry compGeom, CoordinateSequence seq, List locations) -
Uses of CoordinateSequence in org.locationtech.jtstest.util.io
Methods in org.locationtech.jtstest.util.io with parameters of type CoordinateSequenceModifier and TypeMethodDescriptionprivate void
SVGWriter.appendCoordinate
(CoordinateSequence seq, int i, Writer writer) Appends the i'th coordinate from the sequence to the writerprivate void
SVGWriter.appendSequencePath
(CoordinateSequence seq, int level, boolean doIndent, Writer writer) Converts aLineString
to <LineString Text> format, then appends it to the writer.private void
SVGWriter.appendSequencePoints
(CoordinateSequence seq, int level, boolean doIndent, Writer writer)