Uses of Interface
org.locationtech.jts.geom.CoordinateSequence
-
-
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 booleanOrientation. isCCW(CoordinateSequence ring)Computes whether a ring defined by anCoordinateSequenceis oriented counter-clockwise.static booleanPointLocation. isOnLine(Coordinate p, CoordinateSequence line)Tests whether a point lies on the line defined by aCoordinateSequence.static doubleCGAlgorithms. length(CoordinateSequence pts)Deprecated.Computes the length of a linestring specified by a sequence of points.static intRayCrossingCounter. locatePointInRing(Coordinate p, CoordinateSequence ring)Determines theLocationof a point in a ring.static doubleLength. ofLine(CoordinateSequence pts)Computes the length of a linestring specified by a sequence of points.static doubleArea. ofRing(CoordinateSequence ring)Computes the area for a ring.static doubleArea. ofRingSigned(CoordinateSequence ring)Computes the signed area for a ring.static doubleCGAlgorithms. signedArea(CoordinateSequence ring)Deprecated.Computes the signed area for a ring. -
Uses of CoordinateSequence in org.locationtech.jts.geom
Fields in org.locationtech.jts.geom declared as CoordinateSequence Modifier and Type Field Description protected CoordinateSequenceLineString. pointsThe points of thisLineString.Methods in org.locationtech.jts.geom that return CoordinateSequence Modifier and Type Method Description CoordinateSequenceCoordinateSequence. copy()Returns a deep copy of this collection.CoordinateSequenceCoordinateSequenceFactory. create(int size, int dimension)Creates aCoordinateSequenceof the specified size and dimension.default CoordinateSequenceCoordinateSequenceFactory. create(int size, int dimension, int measures)Creates aCoordinateSequenceof the specified size and dimension with measure support.CoordinateSequenceCoordinateSequenceFactory. create(Coordinate[] coordinates)Returns aCoordinateSequencebased on the given array.CoordinateSequenceCoordinateSequenceFactory. create(CoordinateSequence coordSeq)Creates aCoordinateSequencewhich is a copy of the givenCoordinateSequence.static CoordinateSequenceCoordinateSequences. 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 CoordinateSequenceCoordinateSequences. extend(CoordinateSequenceFactory fact, CoordinateSequence seq, int size)CoordinateSequenceLineString. getCoordinateSequence()CoordinateSequencePoint. getCoordinateSequence()Methods in org.locationtech.jts.geom with parameters of type CoordinateSequence Modifier and Type Method Description protected intCoordinateSequenceComparator. compareCoordinate(CoordinateSequence s1, CoordinateSequence s2, int i, int dimension)Compares the same coordinate of twoCoordinateSequences along the given number of dimensions.static voidCoordinateSequences. copy(CoordinateSequence src, int srcPos, CoordinateSequence dest, int destPos, int length)Copies a section of aCoordinateSequenceto anotherCoordinateSequence.static voidCoordinateSequences. copyCoord(CoordinateSequence src, int srcPos, CoordinateSequence dest, int destPos)Copies a coordinate of aCoordinateSequenceto anotherCoordinateSequence.CoordinateSequenceCoordinateSequenceFactory. create(CoordinateSequence coordSeq)Creates aCoordinateSequencewhich is a copy of the givenCoordinateSequence.LinearRingGeometryFactory. createLinearRing(CoordinateSequence coordinates)Creates aLinearRingusing the givenCoordinateSequence.LineStringGeometryFactory. createLineString(CoordinateSequence coordinates)Creates a LineString using the given CoordinateSequence.MultiPointGeometryFactory. createMultiPoint(CoordinateSequence coordinates)Creates aMultiPointusing the points in the givenCoordinateSequence.PointGeometryFactory. createPoint(CoordinateSequence coordinates)Creates a Point using the given CoordinateSequence; a null or empty CoordinateSequence will create an empty Point.PolygonGeometryFactory. createPolygon(CoordinateSequence shell)Constructs aPolygonwith the given exterior boundary.static CoordinateSequenceCoordinateSequences. 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 CoordinateSequenceCoordinateSequences. extend(CoordinateSequenceFactory fact, CoordinateSequence seq, int size)voidCoordinateSequenceFilter. filter(CoordinateSequence seq, int i)Performs an operation on a coordinate in aCoordinateSequence.static intCoordinateSequences. indexOf(Coordinate coordinate, CoordinateSequence seq)Returns the index ofcoordinatein aCoordinateSequenceThe first position is 0; the second, 1; etc.static booleanCoordinateSequences. isEqual(CoordinateSequence cs1, CoordinateSequence cs2)Tests whether twoCoordinateSequences are equal.static booleanCoordinateSequences. isRing(CoordinateSequence seq)Tests whether aCoordinateSequenceforms a validLinearRing, by checking the sequence length and closure (whether the first and last points are identical in 2D).static CoordinateCoordinateSequences. minCoordinate(CoordinateSequence seq)Returns the minimum coordinate, using the usual lexicographic comparison.static intCoordinateSequences. minCoordinateIndex(CoordinateSequence seq)Returns the index of the minimum coordinate of the whole coordinate sequence, using the usual lexicographic comparison.static intCoordinateSequences. minCoordinateIndex(CoordinateSequence seq, int from, int to)Returns the index of the minimum coordinate of a part of the coordinate sequence (defined byfromandto, using the usual lexicographic comparison.static voidCoordinateSequences. reverse(CoordinateSequence seq)Reverses the coordinates in a sequence in-place.static voidCoordinateSequences. scroll(CoordinateSequence seq, int indexOfFirstCoordinate)Shifts the positions of the coordinates until the coordinate atfirstCoordinateIndexis first.static voidCoordinateSequences. scroll(CoordinateSequence seq, int indexOfFirstCoordinate, boolean ensureRing)Shifts the positions of the coordinates until the coordinate atfirstCoordinateIndexis first.static voidCoordinateSequences. scroll(CoordinateSequence seq, Coordinate firstCoordinate)Shifts the positions of the coordinates untilfirstCoordinateis first.static voidCoordinateSequences. swap(CoordinateSequence seq, int i, int j)Swaps two coordinates in a sequence.static StringCoordinateSequences. 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 aLinearRingwith the vertices specified by the givenCoordinateSequence.LineString(CoordinateSequence points, GeometryFactory factory)Constructs aLineStringwith 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 classCoordinateArraySequenceACoordinateSequencebacked by an array ofCoordinates.classPackedCoordinateSequenceACoordinateSequenceimplementation based on a packed arrays.static classPackedCoordinateSequence.DoublePacked coordinate sequence implementation based on doublesstatic classPackedCoordinateSequence.FloatPacked coordinate sequence implementation based on floatsMethods in org.locationtech.jts.geom.impl that return CoordinateSequence Modifier and Type Method Description CoordinateSequenceCoordinateArraySequenceFactory. create(int size, int dimension)The created sequence dimension is clamped to be <= 3.CoordinateSequenceCoordinateArraySequenceFactory. create(int size, int dimension, int measures)CoordinateSequenceCoordinateArraySequenceFactory. create(Coordinate[] coordinates)Returns aCoordinateArraySequencebased on the given array (the array is not copied).CoordinateSequenceCoordinateArraySequenceFactory. create(CoordinateSequence coordSeq)CoordinateSequencePackedCoordinateSequenceFactory. create(double[] packedCoordinates, int dimension)Create a packed coordinate sequence from the provided array.CoordinateSequencePackedCoordinateSequenceFactory. create(double[] packedCoordinates, int dimension, int measures)Create a packed coordinate sequence from the provided array.CoordinateSequencePackedCoordinateSequenceFactory. create(float[] packedCoordinates, int dimension)Create a packed coordinate sequence from the provided array.CoordinateSequencePackedCoordinateSequenceFactory. create(float[] packedCoordinates, int dimension, int measures)CoordinateSequencePackedCoordinateSequenceFactory. create(int size, int dimension)CoordinateSequencePackedCoordinateSequenceFactory. create(int size, int dimension, int measures)CoordinateSequencePackedCoordinateSequenceFactory. create(Coordinate[] coordinates)CoordinateSequencePackedCoordinateSequenceFactory. create(CoordinateSequence coordSeq)Methods in org.locationtech.jts.geom.impl with parameters of type CoordinateSequence Modifier and Type Method Description CoordinateSequenceCoordinateArraySequenceFactory. create(CoordinateSequence coordSeq)CoordinateSequencePackedCoordinateSequenceFactory. 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 protected CoordinateSequenceGeometryTransformer. copy(CoordinateSequence seq)Convenience method which provides a standard way of copyingCoordinateSequencesprotected CoordinateSequenceGeometryTransformer. createCoordinateSequence(Coordinate[] coords)Convenience method which provides standard way of creating aCoordinateSequenceabstract CoordinateSequenceGeometryEditor.CoordinateSequenceOperation. edit(CoordinateSequence coordSeq, Geometry geometry)Edits aCoordinateSequencefrom aGeometry.protected CoordinateSequenceGeometryTransformer. transformCoordinates(CoordinateSequence coords, Geometry parent)Transforms aCoordinateSequence.Methods in org.locationtech.jts.geom.util with parameters of type CoordinateSequence Modifier and Type Method Description protected CoordinateSequenceGeometryTransformer. copy(CoordinateSequence seq)Convenience method which provides a standard way of copyingCoordinateSequencesabstract CoordinateSequenceGeometryEditor.CoordinateSequenceOperation. edit(CoordinateSequence coordSeq, Geometry geometry)Edits aCoordinateSequencefrom aGeometry.voidAffineTransformation. filter(CoordinateSequence seq, int i)Transforms the i'th coordinate in the input sequencevoidAffineTransformation. transform(CoordinateSequence seq, int i)Applies this transformation to the i'th coordinate in the given CoordinateSequence.protected CoordinateSequenceGeometryTransformer. transformCoordinates(CoordinateSequence coords, Geometry parent)Transforms aCoordinateSequence. -
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 StringWKTWriter. toLineString(CoordinateSequence seq)Generates the WKT for a LINESTRING specified by aCoordinateSequence. -
Uses of CoordinateSequence in org.locationtech.spatial4j.io.jts
Methods in org.locationtech.spatial4j.io.jts with parameters of type CoordinateSequence Modifier and Type Method Description protected voidJtsGeoJSONWriter. write(Writer output, NumberFormat nf, CoordinateSequence coordseq)protected voidJtsPolyshapeWriter. write(PolyshapeWriter.Encoder output, CoordinateSequence coordseq)
-