Uses of Class
org.locationtech.jts.geom.Geometry
Packages that use Geometry
Package
Description
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Provides classes that implement various kinds of geometric constructions.
Classes to compute distance metrics between geometries.
Contains classes implementing algorithms to compute hulls
of geometry objects.
Classes to determine the topological location of points in geometries.
Classes to compute matching metrics between geometries.
Classes to perform conversions from Java2D shape objects.
Classes to perform densification on geometries.
Contains the
Geometry
interface hierarchy and supporting classes.Classes to perform optimized geometric operations on suitably prepared geometries.
Provides classes that parse and modify Geometry objects.
Contains classes that implement topology graphs.
Contains the interfaces for converting JTS objects to and from other formats.
Classes to read and write the GML2 geometry format.
Contains classes and interfaces implementing linear referencing on linear geometries
Classes to compute nodings for arrangements of line segments and line segment sequences.
Provides classes for implementing operations on geometries
Provides classes for computing buffers of geometries
Classes to perform validation of the results of buffer operations.
Provides classes for computing the distance between geometries
Classes to perform line merging.
Contains classes that perform a topological overlay to compute boolean spatial functions.
Classes to perform snapping on geometries to prepare them for overlay operations.
Classes to validate the results of overlay operations.
Contains classes that perform vector overlay
to compute boolean set-theoretic spatial functions.
An API for polygonizing sets of lines.
Classes which implement topological predicates optimized for particular kinds of geometries.
Contains classes to implement the computation of the spatial relationships of
Geometry
s.Classes to perform efficient unioning of collections of geometries.
Classes for testing the validity and simplicity of geometries,
as defined in the OGC Simple Features specification.
Provides classes for analyzing and
manipulating the precision of Geometries.
Classes which implement algorithms for simplifying or generalizing geometries.
Classes to compute Delaunay triangulations.
Classes for triangulating polygons.
Classes to implement a topological subdivision of quadeges, to support creating triangulations
and Voronoi diagrams.
Classes for representing a planar triangulation as a set of linked triangles.
Contains support classes for the Java Topology Suite.
-
Uses of Geometry in org.locationtech.jts.algorithm
Methods in org.locationtech.jts.algorithm that return GeometryModifier and TypeMethodDescriptionMinimumBoundingCircle.getCircle()
Gets a geometry which represents the Minimum Bounding Circle.ConvexHull.getConvexHull()
Returns aGeometry
that represents the convex hull of the input geometry.MinimumBoundingCircle.getDiameter()
Gets a geometry representing the diameter of the computed Minimum Bounding Circle.MinimumBoundingCircle.getFarthestPoints()
Deprecated.use #getMaximumDiameter()MinimumBoundingCircle.getMaximumDiameter()
Gets a geometry representing the maximum diameter of the input.static Geometry
MinimumDiameter.getMinimumDiameter
(Geometry geom) Gets the length of the minimum diameter enclosing a geometryMinimumDiameter.getMinimumRectangle()
Gets the minimum rectangularPolygon
which encloses the input geometry.static Geometry
MinimumDiameter.getMinimumRectangle
(Geometry geom) Gets the minimum rectangularPolygon
which encloses the input geometry.Methods in org.locationtech.jts.algorithm with parameters of type GeometryModifier and TypeMethodDescriptionstatic Coordinate
Centroid.getCentroid
(Geometry geom) Computes the centroid point of a geometry.static Coordinate
InteriorPoint.getInteriorPoint
(Geometry geom) Computes a location of an interior point in aGeometry
.static Coordinate
InteriorPointArea.getInteriorPoint
(Geometry geom) Computes an interior point for the polygonal components of a Geometry.static Coordinate
InteriorPointLine.getInteriorPoint
(Geometry geom) Computes an interior point for the linear components of a Geometry.static Coordinate
InteriorPointPoint.getInteriorPoint
(Geometry geom) Computes an interior point for the puntal components of a Geometry.static Geometry
MinimumDiameter.getMinimumDiameter
(Geometry geom) Gets the length of the minimum diameter enclosing a geometrystatic Geometry
MinimumDiameter.getMinimumRectangle
(Geometry geom) Gets the minimum rectangularPolygon
which encloses the input geometry.boolean
PointLocator.intersects
(Coordinate p, Geometry geom) Convenience method to test a point for intersection with a Geometryint
PointLocator.locate
(Coordinate p, Geometry geom) Computes the topological relationship (Location
) of a single point to a Geometry.Constructors in org.locationtech.jts.algorithm with parameters of type GeometryModifierConstructorDescriptionCreates a new instance for computing the centroid of a geometryConvexHull
(Geometry geometry) Create a new convex hull construction for the inputGeometry
.Creates a new interior point finder for an areal geometry.Creates a new object for computing the minimum bounding circle for the point set defined by the vertices of the given geometry.MinimumDiameter
(Geometry inputGeom) Compute a minimum diameter for a givenGeometry
.MinimumDiameter
(Geometry inputGeom, boolean isConvex) Compute a minimum diameter for a giverGeometry
, with a hint if the Geometry is convex (e.g. -
Uses of Geometry in org.locationtech.jts.algorithm.axis
Methods in org.locationtech.jts.algorithm.axis that return GeometryModifier and TypeMethodDescriptionstatic Geometry
ApproximateMedialAxis.medialAxis
(Geometry geom) Methods in org.locationtech.jts.algorithm.axis with parameters of type GeometryModifier and TypeMethodDescriptionstatic Geometry
ApproximateMedialAxis.medialAxis
(Geometry geom) -
Uses of Geometry in org.locationtech.jts.algorithm.construct
Methods in org.locationtech.jts.algorithm.construct with parameters of type GeometryModifier and TypeMethodDescriptionstatic Point
Computes the center point of the Largest Empty Circle within a set of obstacles, up to a given tolerance distance.static Point
Computes the center point of the Maximum Inscribed Circle of a polygonal geometry, up to a given tolerance distance.static LineString
LargestEmptyCircle.getRadiusLine
(Geometry obstacles, double tolerance) Computes a radius line of the Largest Empty Circle within a set of obstacles, up to a given distance tolerance.static LineString
MaximumInscribedCircle.getRadiusLine
(Geometry polygonal, double tolerance) Computes a radius line of the Maximum Inscribed Circle of a polygonal geometry, up to a given tolerance distance.Constructors in org.locationtech.jts.algorithm.construct with parameters of type GeometryModifierConstructorDescriptionLargestEmptyCircle
(Geometry obstacles, double tolerance) Creates a new instance of a Largest Empty Circle construction.MaximumInscribedCircle
(Geometry polygonal, double tolerance) Creates a new instance of a Maximum Inscribed Circle computation. -
Uses of Geometry in org.locationtech.jts.algorithm.distance
Methods in org.locationtech.jts.algorithm.distance with parameters of type GeometryModifier and TypeMethodDescriptionstatic void
DistanceToPoint.computeDistance
(Geometry geom, Coordinate pt, PointPairDistance ptDist) static double
Computes the Discrete Fréchet Distance between twoGeometry
s using aCartesian
distance computation function.static double
static double
Constructors in org.locationtech.jts.algorithm.distance with parameters of type GeometryModifierConstructorDescriptionDiscreteFrechetDistance
(Geometry g0, Geometry g1) Creates an instance of this class using the provided geometries.MaxDensifiedByFractionDistanceFilter
(Geometry geom, double fraction) -
Uses of Geometry in org.locationtech.jts.algorithm.hull
Methods in org.locationtech.jts.algorithm.hull that return GeometryModifier and TypeMethodDescriptionstatic Geometry
ConcaveHullOfPolygons.concaveFillByLength
(Geometry polygons, double maxLength) Computes a concave fill area between a set of polygons, using the target criterion of maximum edge length.static Geometry
ConcaveHullOfPolygons.concaveFillByLengthRatio
(Geometry polygons, double lengthRatio) Computes a concave fill area between a set of polygons, using the target criterion of maximum edge length ratio.static Geometry
ConcaveHull.concaveHullByLength
(Geometry geom, double maxLength) Computes a concave hull of the vertices in a geometry using the target criterion of maximum edge length.static Geometry
ConcaveHull.concaveHullByLength
(Geometry geom, double maxLength, boolean isHolesAllowed) Computes a concave hull of the vertices in a geometry using the target criterion of maximum edge length, and optionally allowing holes.static Geometry
ConcaveHullOfPolygons.concaveHullByLength
(Geometry polygons, double maxLength) Computes a concave hull of set of polygons using the target criterion of maximum edge length.static Geometry
ConcaveHullOfPolygons.concaveHullByLength
(Geometry polygons, double maxLength, boolean isTight, boolean isHolesAllowed) Computes a concave hull of set of polygons using the target criterion of maximum edge length, and allowing control over whether the hull boundary is tight and can contain holes.static Geometry
ConcaveHull.concaveHullByLengthRatio
(Geometry geom, double lengthRatio) Computes a concave hull of the vertices in a geometry using the target criterion of maximum edge length ratio.static Geometry
ConcaveHull.concaveHullByLengthRatio
(Geometry geom, double lengthRatio, boolean isHolesAllowed) Computes a concave hull of the vertices in a geometry using the target criterion of maximum edge length factor, and optionally allowing holes.static Geometry
ConcaveHullOfPolygons.concaveHullByLengthRatio
(Geometry polygons, double lengthRatio) Computes a concave hull of set of polygons using the target criterion of maximum edge length ratio.static Geometry
ConcaveHullOfPolygons.concaveHullByLengthRatio
(Geometry polygons, double lengthRatio, boolean isTight, boolean isHolesAllowed) Computes a concave hull of set of polygons using the target criterion of maximum edge length ratio, and allowing control over whether the hull boundary is tight and can contain holes.ConcaveHullOfPolygons.getFill()
Gets the concave fill, which is the area between the input polygons, subject to the concaveness control parameter.ConcaveHull.getHull()
Gets the computed concave hull.ConcaveHullOfPolygons.getHull()
Gets the computed concave hull.Methods in org.locationtech.jts.algorithm.hull with parameters of type GeometryModifier and TypeMethodDescriptionstatic Geometry
ConcaveHullOfPolygons.concaveFillByLength
(Geometry polygons, double maxLength) Computes a concave fill area between a set of polygons, using the target criterion of maximum edge length.static Geometry
ConcaveHullOfPolygons.concaveFillByLengthRatio
(Geometry polygons, double lengthRatio) Computes a concave fill area between a set of polygons, using the target criterion of maximum edge length ratio.static Geometry
ConcaveHull.concaveHullByLength
(Geometry geom, double maxLength) Computes a concave hull of the vertices in a geometry using the target criterion of maximum edge length.static Geometry
ConcaveHull.concaveHullByLength
(Geometry geom, double maxLength, boolean isHolesAllowed) Computes a concave hull of the vertices in a geometry using the target criterion of maximum edge length, and optionally allowing holes.static Geometry
ConcaveHullOfPolygons.concaveHullByLength
(Geometry polygons, double maxLength) Computes a concave hull of set of polygons using the target criterion of maximum edge length.static Geometry
ConcaveHullOfPolygons.concaveHullByLength
(Geometry polygons, double maxLength, boolean isTight, boolean isHolesAllowed) Computes a concave hull of set of polygons using the target criterion of maximum edge length, and allowing control over whether the hull boundary is tight and can contain holes.static Geometry
ConcaveHull.concaveHullByLengthRatio
(Geometry geom, double lengthRatio) Computes a concave hull of the vertices in a geometry using the target criterion of maximum edge length ratio.static Geometry
ConcaveHull.concaveHullByLengthRatio
(Geometry geom, double lengthRatio, boolean isHolesAllowed) Computes a concave hull of the vertices in a geometry using the target criterion of maximum edge length factor, and optionally allowing holes.static Geometry
ConcaveHullOfPolygons.concaveHullByLengthRatio
(Geometry polygons, double lengthRatio) Computes a concave hull of set of polygons using the target criterion of maximum edge length ratio.static Geometry
ConcaveHullOfPolygons.concaveHullByLengthRatio
(Geometry polygons, double lengthRatio, boolean isTight, boolean isHolesAllowed) Computes a concave hull of set of polygons using the target criterion of maximum edge length ratio, and allowing control over whether the hull boundary is tight and can contain holes.static double
ConcaveHull.uniformGridEdgeLength
(Geometry geom) Computes the approximate edge length of a uniform square grid having the same number of points as a geometry and the same area as its convex hull.Constructors in org.locationtech.jts.algorithm.hull with parameters of type GeometryModifierConstructorDescriptionConcaveHull
(Geometry geom) Creates a new instance for a given geometry.ConcaveHullOfPolygons
(Geometry polygons) Creates a new instance for a given geometry. -
Uses of Geometry in org.locationtech.jts.algorithm.locate
Methods in org.locationtech.jts.algorithm.locate with parameters of type GeometryModifier and TypeMethodDescriptionstatic boolean
SimplePointInAreaLocator.isContained
(Coordinate p, Geometry geom) Determines whether a point is contained in aGeometry
, or lies on its boundary.static int
SimplePointInAreaLocator.locate
(Coordinate p, Geometry geom) Constructors in org.locationtech.jts.algorithm.locate with parameters of type GeometryModifierConstructorDescriptionCreates a new locator for a givenGeometry
.Create an instance of a point-in-area locator, using the provided areal geometry. -
Uses of Geometry in org.locationtech.jts.algorithm.match
Methods in org.locationtech.jts.algorithm.match with parameters of type GeometryModifier and TypeMethodDescriptiondouble
double
double
double
Computes the similarity measure between two geometries -
Uses of Geometry in org.locationtech.jts.awt
Methods in org.locationtech.jts.awt that return GeometryModifier and TypeMethodDescriptionstatic Geometry
FontGlyphReader.read
(String text, Font font, double flatness, GeometryFactory geomFact) static Geometry
FontGlyphReader.read
(String text, Font font, GeometryFactory geomFact) static Geometry
FontGlyphReader.read
(String text, String fontName, int pointSize, GeometryFactory geomFact) Converts text rendered in the given font and pointsize to aGeometry
using a standard flatness factor.ShapeReader.read
(PathIterator pathIt) Converts a flat path to aGeometry
.static Geometry
ShapeReader.read
(PathIterator pathIt, GeometryFactory geomFact) Converts a flat path to aGeometry
.static Geometry
ShapeReader.read
(Shape shp, double flatness, GeometryFactory geomFact) Converts a Shape to a Geometry, flattening it first.Methods in org.locationtech.jts.awt with parameters of type Geometry -
Uses of Geometry in org.locationtech.jts.densify
Methods in org.locationtech.jts.densify that return GeometryModifier and TypeMethodDescriptionstatic Geometry
Densifies a geometry using a given distance tolerance, and respecting the input geometry'sPrecisionModel
.Densifier.getResultGeometry()
Gets the densified geometry.Methods in org.locationtech.jts.densify with parameters of type GeometryModifier and TypeMethodDescriptionstatic Geometry
Densifies a geometry using a given distance tolerance, and respecting the input geometry'sPrecisionModel
.Constructors in org.locationtech.jts.densify with parameters of type Geometry -
Uses of Geometry in org.locationtech.jts.dissolve
Methods in org.locationtech.jts.dissolve that return GeometryModifier and TypeMethodDescriptionstatic Geometry
Dissolves the linear components in a geometry.LineDissolver.getResult()
Gets the dissolved result as a MultiLineString.Methods in org.locationtech.jts.dissolve with parameters of type Geometry -
Uses of Geometry in org.locationtech.jts.edgegraph
Methods in org.locationtech.jts.edgegraph with parameters of type Geometry -
Uses of Geometry in org.locationtech.jts.geom
Subclasses of Geometry in org.locationtech.jts.geomModifier and TypeClassDescriptionclass
Models a collection ofGeometry
s of arbitrary type and dimension.class
Models an OGC SFSLinearRing
.class
Models an OGC-styleLineString
.class
Models a collection ofLineString
s.class
Models a collection ofPoint
s.class
Models a collection ofPolygon
s.class
Represents a single point.class
Represents a polygon with linear edges, which may include holes.Methods in org.locationtech.jts.geom that return GeometryModifier and TypeMethodDescriptionGeometry.buffer
(double distance) Computes a buffer area around this geometry having the given width.Geometry.buffer
(double distance, int quadrantSegments) Computes a buffer area around this geometry having the given width and with a specified accuracy of approximation for circular arcs.Geometry.buffer
(double distance, int quadrantSegments, int endCapStyle) Computes a buffer area around this geometry having the given width and with a specified accuracy of approximation for circular arcs, and using a specified end cap style.GeometryFactory.buildGeometry
(Collection geomList) Build an appropriateGeometry
,MultiGeometry
, orGeometryCollection
to contain theGeometry
s in it.Geometry.convexHull()
Computes the smallest convexPolygon
that contains all the points in theGeometry
.Polygon.convexHull()
Geometry.copy()
Creates a deep copy of thisGeometry
object.GeometryFactory.createEmpty
(int dimension) Creates an empty atomic geometry of the given dimension.GeometryFactory.createGeometry
(Geometry g) Creates a deep copy of the inputGeometry
.Geometry.difference
(Geometry other) Computes aGeometry
representing the closure of the point-set of the points contained in thisGeometry
that are not contained in theother
Geometry.abstract Geometry
Geometry.getBoundary()
Returns the boundary, or an empty geometry of appropriate dimension if thisGeometry
is empty.GeometryCollection.getBoundary()
LineString.getBoundary()
Gets the boundary of this geometry.MultiLineString.getBoundary()
Gets the boundary of this geometry.MultiPoint.getBoundary()
Gets the boundary of this geometry.MultiPolygon.getBoundary()
Computes the boundary of this geometryPoint.getBoundary()
Gets the boundary of this geometry.Polygon.getBoundary()
Computes the boundary of this geometryGeometry.getEnvelope()
Gets a Geometry representing the envelope (bounding box) of thisGeometry
.Geometry.getGeometryN
(int n) Returns an elementGeometry
from aGeometryCollection
(orthis
, if the geometry is not a collection).GeometryCollection.getGeometryN
(int n) Geometry.intersection
(Geometry other) Computes aGeometry
representing the point-set which is common to both thisGeometry
and theother
Geometry.Geometry.norm()
Creates a new Geometry which is a normalized copy of this Geometry.static Geometry
OctagonalEnvelope.octagonalEnvelope
(Geometry geom) Gets the octagonal envelope of a geometryGeometry.reverse()
Computes a new geometry which has all component coordinate sequences in reverse order (opposite orientation) to this one.Geometry.symDifference
(Geometry other) Computes aGeometry
representing the closure of the point-set which is the union of the points in thisGeometry
which are not contained in theother
Geometry, with the points in theother
Geometry not contained in thisGeometry
.GeometryFactory.toGeometry
(Envelope envelope) Creates aGeometry
with the same extent as the given envelope.OctagonalEnvelope.toGeometry
(GeometryFactory geomFactory) static Geometry[]
GeometryFactory.toGeometryArray
(Collection geometries) Converts theList
to an array.Geometry.union()
Computes the union of all the elements of this geometry.Computes aGeometry
representing the point-set which is contained in both thisGeometry
and theother
Geometry.Methods in org.locationtech.jts.geom with parameters of type GeometryModifier and TypeMethodDescriptionboolean
Tests whether this geometry contains the argument geometry.boolean
Tests whether this geometry is covered by the argument geometry.boolean
Tests whether this geometry covers the argument geometry.GeometryFactory.createGeometry
(Geometry g) Creates a deep copy of the inputGeometry
.GeometryFactory.createGeometryCollection
(Geometry[] geometries) Creates a GeometryCollection using the given Geometries; a null or empty array will create an empty GeometryCollection.static Point
GeometryFactory.createPointFromInternalCoord
(Coordinate coord, Geometry exemplar) boolean
Tests whether this geometry crosses the argument geometry.Geometry.difference
(Geometry other) Computes aGeometry
representing the closure of the point-set of the points contained in thisGeometry
that are not contained in theother
Geometry.boolean
Tests whether this geometry is disjoint from the argument geometry.double
Returns the minimum distance between thisGeometry
and anotherGeometry
.boolean
Tests whether this geometry is topologically equal to the argument geometry.boolean
Geometry.equalsExact
(Geometry other) Returns true if the twoGeometry
s are exactly equal.abstract boolean
Geometry.equalsExact
(Geometry other, double tolerance) Returns true if the twoGeometry
s are exactly equal, up to a specified distance tolerance.boolean
GeometryCollection.equalsExact
(Geometry other, double tolerance) boolean
LineString.equalsExact
(Geometry other, double tolerance) boolean
MultiLineString.equalsExact
(Geometry other, double tolerance) boolean
MultiPoint.equalsExact
(Geometry other, double tolerance) boolean
MultiPolygon.equalsExact
(Geometry other, double tolerance) boolean
Point.equalsExact
(Geometry other, double tolerance) boolean
Polygon.equalsExact
(Geometry other, double tolerance) boolean
Geometry.equalsNorm
(Geometry g) Tests whether two geometries are exactly equal in their normalized forms.boolean
Geometry.equalsTopo
(Geometry g) Tests whether this geometry is topologically equal to the argument geometry as defined by the SFSequals
predicate.void
OctagonalEnvelope.expandToInclude
(Geometry g) void
Performs an operation with or ongeom
.void
Performs an operation with or ongeom
.Geometry.intersection
(Geometry other) Computes aGeometry
representing the point-set which is common to both thisGeometry
and theother
Geometry.boolean
Geometry.intersects
(Geometry g) Tests whether this geometry intersects the argument geometry.boolean
Geometry.isWithinDistance
(Geometry geom, double distance) Tests whether the distance from thisGeometry
to another is less than or equal to a specified value.static Geometry
OctagonalEnvelope.octagonalEnvelope
(Geometry geom) Gets the octagonal envelope of a geometryboolean
Tests whether this geometry overlaps the specified geometry.Returns the DE-9IMIntersectionMatrix
for the twoGeometry
s.boolean
Tests whether the elements in the DE-9IMIntersectionMatrix
for the twoGeometry
s match the elements inintersectionPattern
.Geometry.symDifference
(Geometry other) Computes aGeometry
representing the closure of the point-set which is the union of the points in thisGeometry
which are not contained in theother
Geometry, with the points in theother
Geometry not contained in thisGeometry
.boolean
Tests whether this geometry touches the argument geometry.Computes aGeometry
representing the point-set which is contained in both thisGeometry
and theother
Geometry.boolean
Tests whether this geometry is within the specified geometry.Constructors in org.locationtech.jts.geom with parameters of type GeometryModifierConstructorDescriptionGeometryCollection
(Geometry[] geometries, GeometryFactory factory) GeometryCollection
(Geometry[] geometries, PrecisionModel precisionModel, int SRID) Deprecated.Use GeometryFactory insteadGeometryCollectionIterator
(Geometry parent) Constructs an iterator over the givenGeometry
.OctagonalEnvelope
(Geometry geom) Creates a new null bounding octagon bounding aGeometry
-
Uses of Geometry in org.locationtech.jts.geom.prep
Methods in org.locationtech.jts.geom.prep that return GeometryModifier and TypeMethodDescriptionPreparedGeometry.getGeometry()
Gets the originalGeometry
which has been prepared.Methods in org.locationtech.jts.geom.prep with parameters of type GeometryModifier and TypeMethodDescriptionboolean
Tests whether the baseGeometry
contains a given geometry.boolean
boolean
PreparedGeometry.containsProperly
(Geometry geom) Tests whether the baseGeometry
properly contains a given geometry.boolean
PreparedPolygon.containsProperly
(Geometry g) boolean
Tests whether the baseGeometry
is covered by a given geometry.boolean
Tests whether the baseGeometry
covers a given geometry.boolean
Creates a newPreparedGeometry
appropriate for the argumentGeometry
.boolean
Tests whether the baseGeometry
crosses a given geometry.boolean
Tests whether the baseGeometry
is disjoint from a given geometry.boolean
PreparedGeometry.intersects
(Geometry geom) Tests whether the baseGeometry
intersects a given geometry.boolean
PreparedLineString.intersects
(Geometry g) boolean
PreparedPoint.intersects
(Geometry g) Tests whether this point intersects aGeometry
.boolean
PreparedPolygon.intersects
(Geometry g) boolean
Tests whether the baseGeometry
overlaps a given geometry.static PreparedGeometry
Creates a newPreparedGeometry
appropriate for the argumentGeometry
.boolean
Tests whether the baseGeometry
touches a given geometry.boolean
Tests whether the baseGeometry
is within a given geometry. -
Uses of Geometry in org.locationtech.jts.geom.util
Methods in org.locationtech.jts.geom.util that return GeometryModifier and TypeMethodDescriptionGeometryCombiner.combine()
Computes the combination of the input geometries to produce the most appropriateGeometry
orGeometryCollection
static Geometry
GeometryCombiner.combine
(Collection geoms) Combines a collection of geometries.static Geometry
Combines two geometries.static Geometry
Combines three geometries.static Geometry
SineStarFactory.create
(Coordinate origin, double size, int nPts, int nArms, double armLengthRatio) Creates a sine star with the given parameters.SineStarFactory.createSineStar()
Generates the geometry for the sine starfinal Geometry
GeometryEditor.CoordinateOperation.edit
(Geometry geometry, GeometryFactory factory) final Geometry
GeometryEditor.CoordinateSequenceOperation.edit
(Geometry geometry, GeometryFactory factory) GeometryEditor.edit
(Geometry geometry, GeometryEditor.GeometryEditorOperation operation) Edit the inputGeometry
with the given edit operation.GeometryEditor.GeometryEditorOperation.edit
(Geometry geometry, GeometryFactory factory) Edits a Geometry by returning a new Geometry with a modification.GeometryEditor.NoOpGeometryOperation.edit
(Geometry geometry, GeometryFactory factory) static Geometry
Fixes a geometry to be valid.static Geometry
Fixes a geometry to be valid, allowing to set a flag controlling how single item results from fixedMULTI
geometries should be returned.static Geometry
GeometryMapper.flatMap
(Geometry geom, int emptyDim, GeometryMapper.MapOp op) Maps the atomic elements of aGeometry
(which may be atomic or composite) using aGeometryMapper.MapOp
mapping operation into an atomic Geometry or a flat collection of the most specific type.static Geometry
LinearComponentExtracter.getGeometry
(Geometry geom) Extracts the linear components from a singleGeometry
and returns them as either aLineString
orMultiLineString
.static Geometry
LinearComponentExtracter.getGeometry
(Geometry geom, boolean forceToLineString) Extracts the linear components from a singleGeometry
and returns them as either aLineString
orMultiLineString
.static Geometry
LineStringExtracter.getGeometry
(Geometry geom) Extracts theLineString
elements from a singleGeometry
and returns them as either aLineString
orMultiLineString
.GeometryTransformer.getInputGeometry()
Utility function to make input geometry availableGeometryFixer.getResult()
Gets the fixed geometry.static Geometry
GeometryMapper.map
(Geometry geom, GeometryMapper.MapOp op) Maps the members of aGeometry
(which may be atomic or composite) into another Geometry of most specific type.Maps a geometry value into another value.Creates a newGeometry
which is the result of this transformation applied to the input Geometry.final Geometry
Methods in org.locationtech.jts.geom.util with parameters of type GeometryModifier and TypeMethodDescriptionvoid
static Geometry
Combines two geometries.static Geometry
Combines three geometries.abstract Coordinate[]
GeometryEditor.CoordinateOperation.edit
(Coordinate[] coordinates, Geometry geometry) Edits the array ofCoordinate
s from aGeometry
.final Geometry
GeometryEditor.CoordinateOperation.edit
(Geometry geometry, GeometryFactory factory) abstract CoordinateSequence
GeometryEditor.CoordinateSequenceOperation.edit
(CoordinateSequence coordSeq, Geometry geometry) Edits aCoordinateSequence
from aGeometry
.final Geometry
GeometryEditor.CoordinateSequenceOperation.edit
(Geometry geometry, GeometryFactory factory) GeometryEditor.edit
(Geometry geometry, GeometryEditor.GeometryEditorOperation operation) Edit the inputGeometry
with the given edit operation.GeometryEditor.GeometryEditorOperation.edit
(Geometry geometry, GeometryFactory factory) Edits a Geometry by returning a new Geometry with a modification.GeometryEditor.NoOpGeometryOperation.edit
(Geometry geometry, GeometryFactory factory) static List
Deprecated.static List
Deprecated.static List
static List
void
void
void
void
void
void
static Geometry
Fixes a geometry to be valid.static Geometry
Fixes a geometry to be valid, allowing to set a flag controlling how single item results from fixedMULTI
geometries should be returned.static Geometry
GeometryMapper.flatMap
(Geometry geom, int emptyDim, GeometryMapper.MapOp op) Maps the atomic elements of aGeometry
(which may be atomic or composite) using aGeometryMapper.MapOp
mapping operation into an atomic Geometry or a flat collection of the most specific type.static List
ComponentCoordinateExtracter.getCoordinates
(Geometry geom) Extracts a representativeCoordinate
from each connected component in a geometry.static Geometry
LinearComponentExtracter.getGeometry
(Geometry geom) Extracts the linear components from a singleGeometry
and returns them as either aLineString
orMultiLineString
.static Geometry
LinearComponentExtracter.getGeometry
(Geometry geom, boolean forceToLineString) Extracts the linear components from a singleGeometry
and returns them as either aLineString
orMultiLineString
.static Geometry
LineStringExtracter.getGeometry
(Geometry geom) Extracts theLineString
elements from a singleGeometry
and returns them as either aLineString
orMultiLineString
.static List
Extracts the linear components from a single geometry.static List
Extracts the linear components from a single geometry.static Collection
LinearComponentExtracter.getLines
(Geometry geom, Collection lines) Extracts the linear components from a singleGeometry
and adds them to the providedCollection
.static Collection
LinearComponentExtracter.getLines
(Geometry geom, Collection lines, boolean forceToLineString) Extracts the linear components from a singleGeometry
and adds them to the providedCollection
.static List
static List
static List
static List
static List
PolygonExtracter.getPolygons
(Geometry geom) static List
PolygonExtracter.getPolygons
(Geometry geom, List list) static Geometry
GeometryMapper.map
(Geometry geom, GeometryMapper.MapOp op) Maps the members of aGeometry
(which may be atomic or composite) into another Geometry of most specific type.Maps a geometry value into another value.Creates a newGeometry
which is the result of this transformation applied to the input Geometry.final Geometry
Constructors in org.locationtech.jts.geom.util with parameters of type GeometryModifierConstructorDescriptionGeometryFixer
(Geometry geom) Creates a new instance to fix a given geometry. -
Uses of Geometry in org.locationtech.jts.geomgraph
Methods in org.locationtech.jts.geomgraph that return GeometryConstructors in org.locationtech.jts.geomgraph with parameters of type GeometryModifierConstructorDescriptionGeometryGraph
(int argIndex, Geometry parentGeom) GeometryGraph
(int argIndex, Geometry parentGeom, BoundaryNodeRule boundaryNodeRule) -
Uses of Geometry in org.locationtech.jts.io
Methods in org.locationtech.jts.io that return GeometryModifier and TypeMethodDescriptionWKBReader.read
(byte[] bytes) Reads a singleGeometry
in WKB format from a byte array.Methods in org.locationtech.jts.io with parameters of type GeometryModifier and TypeMethodDescriptionbyte[]
Writes aGeometry
into a byte array.void
Converts aGeometry
to its Well-known Text representation.void
Converts aGeometry
to its Well-known Text representation.WKTWriter.writeFormatted
(Geometry geometry) Same aswrite
, but with newlines and spaces to make the well-known text more readable.void
WKTWriter.writeFormatted
(Geometry geometry, Writer writer) Same aswrite
, but with newlines and spaces to make the well-known text more readable. -
Uses of Geometry in org.locationtech.jts.io.geojson
Methods in org.locationtech.jts.io.geojson that return GeometryModifier and TypeMethodDescriptionReads a GeoJson Geometry from a String into a singleGeometry
.static Geometry
OrientationTransformer.transformCCW
(Geometry geometry) Transforms a geometry using the Right Hand Rule specifications defined in the latest GeoJSON specification.Methods in org.locationtech.jts.io.geojson with parameters of type GeometryModifier and TypeMethodDescriptionstatic Geometry
OrientationTransformer.transformCCW
(Geometry geometry) Transforms a geometry using the Right Hand Rule specifications defined in the latest GeoJSON specification.Writes aGeometry
in GeoJson format to a String.void
-
Uses of Geometry in org.locationtech.jts.io.gml2
Methods in org.locationtech.jts.io.gml2 that return GeometryModifier and TypeMethodDescriptionGMLHandler.getGeometry()
Gets the geometry parsed by this handler.GMLReader.read
(Reader reader, GeometryFactory geometryFactory) Reads a GML2 Geometry from aReader
into a singleGeometry
If a collection of Geometries is found, aGeometryCollection
is returned.GMLReader.read
(String gml, GeometryFactory geometryFactory) Reads a GML2 Geometry from a String into a singleGeometry
If a collection of geometries is found, aGeometryCollection
is returned.Methods in org.locationtech.jts.io.gml2 with parameters of type Geometry -
Uses of Geometry in org.locationtech.jts.io.kml
Methods in org.locationtech.jts.io.kml that return GeometryModifier and TypeMethodDescriptionMethods in org.locationtech.jts.io.kml with parameters of type GeometryModifier and TypeMethodDescriptionWrites aGeometry
in KML format as a string.void
void
KMLWriter.write
(Geometry geometry, StringBuffer buf) Appends the KML representation of aGeometry
to aStringBuffer
.static String
KMLWriter.writeGeometry
(Geometry geometry, double z) Writes a Geometry as KML to a string, using a specified Z value.static String
KMLWriter.writeGeometry
(Geometry geometry, double z, int precision, boolean extrude, String altitudeMode) Writes a Geometry as KML to a string, using a specified Z value, precision, extrude flag, and altitude mode code. -
Uses of Geometry in org.locationtech.jts.io.twkb
Methods in org.locationtech.jts.io.twkb that return GeometryMethods in org.locationtech.jts.io.twkb with parameters of type GeometryModifier and TypeMethodDescriptionbyte[]
void
TWKBWriter.write
(Geometry geom, DataOutput out) void
TWKBWriter.write
(Geometry geom, OutputStream out) -
Uses of Geometry in org.locationtech.jts.linearref
Methods in org.locationtech.jts.linearref that return GeometryModifier and TypeMethodDescriptionLengthIndexedLine.extractLine
(double startIndex, double endIndex) Computes theLineString
for the interval on the line between the given indices.LocationIndexedLine.extractLine
(LinearLocation startIndex, LinearLocation endIndex) Computes theLineString
for the interval on the line between the given indices.LinearGeometryBuilder.getGeometry()
Methods in org.locationtech.jts.linearref with parameters of type GeometryModifier and TypeMethodDescriptionvoid
Ensures the indexes are valid for a given linearGeometry
.LinearLocation.getCoordinate
(Geometry linearGeom) Gets theCoordinate
along the given linearGeometry
which is referenced by this location.static LinearLocation
LinearLocation.getEndLocation
(Geometry linear) Gets a location which refers to the end of a linearGeometry
.static double
LengthLocationMap.getLength
(Geometry linearGeom, LinearLocation loc) Computes the length for a givenLinearLocation
on a linearGeometry
.static LinearLocation
LengthLocationMap.getLocation
(Geometry linearGeom, double length) Computes theLinearLocation
for a given length along a linearGeometry
.static LinearLocation
LengthLocationMap.getLocation
(Geometry linearGeom, double length, boolean resolveLower) Computes theLinearLocation
for a given length along a linearGeometry
, with control over how the location is resolved at component endpoints.LinearLocation.getSegment
(Geometry linearGeom) Gets aLineSegment
representing the segment of the given linearGeometry
which contains this location.double
LinearLocation.getSegmentLength
(Geometry linearGeom) Gets the length of the segment in the given Geometry containing this location.double[]
Computes the indices for a subline of the line.Computes the indices for a subline of the line.boolean
LinearLocation.isEndpoint
(Geometry linearGeom) Tests whether this location is an endpoint of the linear component it refers to.boolean
Tests whether this location refers to a valid location on the given linearGeometry
.void
Sets the value of this location to refer to the end of a linear geometry.void
LinearLocation.snapToVertex
(Geometry linearGeom, double minDistance) Snaps the value of this location to the nearest vertex on the given linearGeometry
, if the vertex is closer than minDistance.Converts a linear location to the lowest equivalent location index.Constructors in org.locationtech.jts.linearref with parameters of type GeometryModifierConstructorDescriptionLengthIndexedLine
(Geometry linearGeom) Constructs an object which allows a linearGeometry
to be linearly referenced using length as an index.LengthLocationMap
(Geometry linearGeom) LinearIterator
(Geometry linear) Creates an iterator initialized to the start of a linearGeometry
LinearIterator
(Geometry linearGeom, int componentIndex, int vertexIndex) Creates an iterator starting at a specified component and vertex in a linearGeometry
LinearIterator
(Geometry linear, LinearLocation start) Creates an iterator starting at aLinearLocation
on a linearGeometry
LocationIndexedLine
(Geometry linearGeom) Constructs an object which allows linear referencing along a given linearGeometry
. -
Uses of Geometry in org.locationtech.jts.noding
Methods in org.locationtech.jts.noding that return GeometryModifier and TypeMethodDescriptionstatic Geometry
SegmentStringUtil.toGeometry
(Collection segStrings, GeometryFactory geomFact) Converts a collection ofSegmentString
s into aGeometry
.Methods in org.locationtech.jts.noding with parameters of type GeometryModifier and TypeMethodDescriptionstatic List
SegmentStringUtil.extractBasicSegmentStrings
(Geometry geom) Extracts all linear components from a givenGeometry
toBasicSegmentString
s.static List
SegmentStringUtil.extractNodedSegmentStrings
(Geometry geom) Extracts all linear components from a givenGeometry
toNodedSegmentString
s.static List
SegmentStringUtil.extractSegmentStrings
(Geometry geom) Extracts all linear components from a givenGeometry
toSegmentString
s. -
Uses of Geometry in org.locationtech.jts.operation
Methods in org.locationtech.jts.operation that return GeometryModifier and TypeMethodDescriptionGeometryGraphOperation.getArgGeometry
(int i) BoundaryOp.getBoundary()
Gets the computed boundary.static Geometry
BoundaryOp.getBoundary
(Geometry g) Computes a geometry representing the boundary of a geometry.static Geometry
BoundaryOp.getBoundary
(Geometry g, BoundaryNodeRule bnRule) Computes a geometry representing the boundary of a geometry, using an explicitBoundaryNodeRule
.Methods in org.locationtech.jts.operation with parameters of type GeometryModifier and TypeMethodDescriptionstatic Geometry
BoundaryOp.getBoundary
(Geometry g) Computes a geometry representing the boundary of a geometry.static Geometry
BoundaryOp.getBoundary
(Geometry g, BoundaryNodeRule bnRule) Computes a geometry representing the boundary of a geometry, using an explicitBoundaryNodeRule
.static boolean
BoundaryOp.hasBoundary
(Geometry geom, BoundaryNodeRule boundaryNodeRule) Tests if a geometry has a boundary (it is non-empty).Constructors in org.locationtech.jts.operation with parameters of type GeometryModifierConstructorDescriptionBoundaryOp
(Geometry geom) Creates a new instance for the given geometry.BoundaryOp
(Geometry geom, BoundaryNodeRule bnRule) Creates a new instance for the given geometry.GeometryGraphOperation
(Geometry g0, Geometry g1) GeometryGraphOperation
(Geometry g0, Geometry g1, BoundaryNodeRule boundaryNodeRule) IsSimpleOp
(Geometry geom) Deprecated.Creates a simplicity checker using the default SFS Mod-2 Boundary Node RuleIsSimpleOp
(Geometry geom, BoundaryNodeRule boundaryNodeRule) Deprecated.Creates a simplicity checker using a givenBoundaryNodeRule
-
Uses of Geometry in org.locationtech.jts.operation.buffer
Methods in org.locationtech.jts.operation.buffer that return GeometryModifier and TypeMethodDescriptionstatic Geometry
Creates a buffer polygon along a line with the distance specified at each vertex.static Geometry
Creates a buffer polygon along a line with the buffer distance interpolated between a start distance and an end distance.static Geometry
Creates a buffer polygon along a line with the buffer distance interpolated between a start distance, a middle distance and an end distance.static Geometry
BufferOp.bufferByZero
(Geometry geom, boolean isBothOrientations) Buffers a geometry with distance zero.static Geometry
Computes the buffer of a geometry for a given buffer distance.static Geometry
Computes the buffer for a geometry for a given buffer distance and accuracy of approximation.static Geometry
Computes the buffer for a geometry for a given buffer distance and accuracy of approximation.static Geometry
BufferOp.bufferOp
(Geometry g, double distance, BufferParameters params) Computes the buffer for a geometry for a given buffer distance and accuracy of approximation.OffsetCurve.getCurve()
Gets the computed offset curve.static Geometry
Computes the offset curve of a geometry at a given distance.static Geometry
OffsetCurve.getCurve
(Geometry geom, double distance, int quadSegs, int joinStyle, double mitreLimit) Computes the offset curve of a geometry at a given distance, and for a specified quadrant segments, join style and mitre limit.VariableBuffer.getResult()
Computes the buffer polygon.BufferOp.getResultGeometry
(double distance) Returns the buffer computed for a geometry for a given buffer distance.Methods in org.locationtech.jts.operation.buffer with parameters of type GeometryModifier and TypeMethodDescriptionstatic Geometry
Creates a buffer polygon along a line with the distance specified at each vertex.static Geometry
Creates a buffer polygon along a line with the buffer distance interpolated between a start distance and an end distance.static Geometry
Creates a buffer polygon along a line with the buffer distance interpolated between a start distance, a middle distance and an end distance.static Geometry
BufferOp.bufferByZero
(Geometry geom, boolean isBothOrientations) Buffers a geometry with distance zero.static Geometry
Computes the buffer of a geometry for a given buffer distance.static Geometry
Computes the buffer for a geometry for a given buffer distance and accuracy of approximation.static Geometry
Computes the buffer for a geometry for a given buffer distance and accuracy of approximation.static Geometry
BufferOp.bufferOp
(Geometry g, double distance, BufferParameters params) Computes the buffer for a geometry for a given buffer distance and accuracy of approximation.static Geometry
Computes the offset curve of a geometry at a given distance.static Geometry
OffsetCurve.getCurve
(Geometry geom, double distance, int quadSegs, int joinStyle, double mitreLimit) Computes the offset curve of a geometry at a given distance, and for a specified quadrant segments, join style and mitre limit.Constructors in org.locationtech.jts.operation.buffer with parameters of type GeometryModifierConstructorDescriptionBufferCurveSetBuilder
(Geometry inputGeom, double distance, PrecisionModel precisionModel, BufferParameters bufParams) Initializes a buffer computation for the given geometryBufferOp
(Geometry g, BufferParameters bufParams) Initializes a buffer computation for the given geometry with the given set of parametersOffsetCurve
(Geometry geom, double distance) Creates a new instance for computing an offset curve for a geometryat a given distance.OffsetCurve
(Geometry geom, double distance, BufferParameters bufParams) Creates a new instance for computing an offset curve for a geometry at a given distance.VariableBuffer
(Geometry line, double[] distance) Creates a generator for a variable-distance line buffer. -
Uses of Geometry in org.locationtech.jts.operation.buffer.validate
Methods in org.locationtech.jts.operation.buffer.validate that return GeometryModifier and TypeMethodDescriptionBufferDistanceValidator.getErrorIndicator()
Gets a geometry which indicates the location and nature of a validation failure.BufferResultValidator.getErrorIndicator()
Gets a geometry which indicates the location and nature of a validation failure.Methods in org.locationtech.jts.operation.buffer.validate with parameters of type GeometryModifier and TypeMethodDescriptionstatic void
DistanceToPointFinder.computeDistance
(Geometry geom, Coordinate pt, PointPairDistance ptDist) double
BufferCurveMaximumDistanceFinder.findDistance
(Geometry bufferCurve) static boolean
static String
BufferResultValidator.isValidMsg
(Geometry g, double distance, Geometry result) Checks whether the geometry buffer is valid, and returns an error message if not.Constructors in org.locationtech.jts.operation.buffer.validate with parameters of type GeometryModifierConstructorDescriptionBufferCurveMaximumDistanceFinder
(Geometry inputGeom) BufferDistanceValidator
(Geometry input, double bufDistance, Geometry result) BufferResultValidator
(Geometry input, double distance, Geometry result) -
Uses of Geometry in org.locationtech.jts.operation.distance
Methods in org.locationtech.jts.operation.distance that return GeometryModifier and TypeMethodDescriptionGeometryLocation.getGeometryComponent()
Returns the geometry component on (or in) which this location occurs.Methods in org.locationtech.jts.operation.distance with parameters of type GeometryModifier and TypeMethodDescriptionstatic STRtree
static Coordinate[]
DistanceOp.closestPoints
(Geometry g0, Geometry g1) Deprecated.renamed to nearestPointsstatic double
Compute the distance between the nearest points of two geometries.double
Computes the distance from the base geometry to the given geometry.static double
Computes the distance between facets of two geometries.void
void
static List
ConnectedElementPointFilter.getCoordinates
(Geometry geom) Returns a list containing a Coordinate from each Polygon, LineString, and Point found inside the specified geometry.static List
ConnectedElementLocationFilter.getLocations
(Geometry geom) Returns a list containing a point from each Polygon, LineString, and Point found inside the specified geometry.static boolean
DistanceOp.isWithinDistance
(Geometry g0, Geometry g1, double distance) Test whether two geometries lie within a given distance of each other.boolean
IndexedFacetDistance.isWithinDistance
(Geometry g, double maxDistance) Tests whether the base geometry lies within a specified distance of the given geometry.static boolean
IndexedFacetDistance.isWithinDistance
(Geometry g1, Geometry g2, double distance) Tests whether the facets of two geometries lie within a given distance.IndexedFacetDistance.nearestLocations
(Geometry g) Computes the nearest locations on the base geometry and the given geometry.static Coordinate[]
DistanceOp.nearestPoints
(Geometry g0, Geometry g1) Compute the the nearest points of two geometries.IndexedFacetDistance.nearestPoints
(Geometry g) Compute the nearest locations on the target geometry and the given geometry.static Coordinate[]
IndexedFacetDistance.nearestPoints
(Geometry g1, Geometry g2) Computes the nearest points of the facets of two geometries.Constructors in org.locationtech.jts.operation.distance with parameters of type GeometryModifierConstructorDescriptionDistanceOp
(Geometry g0, Geometry g1) Constructs a DistanceOp that computes the distance and nearest points between the two specified geometries.DistanceOp
(Geometry g0, Geometry g1, double terminateDistance) Constructs a DistanceOp that computes the distance and nearest points between the two specified geometries.FacetSequence
(Geometry geom, CoordinateSequence pts, int start, int end) Creates a new sequence of facets based on aCoordinateSequence
contained in the givenGeometry
.GeometryLocation
(Geometry component, int segIndex, Coordinate pt) Constructs a GeometryLocation specifying a point on a geometry, as well as the segment that the point is on (orGeometryLocation.INSIDE_AREA
if the point is not on a segment).GeometryLocation
(Geometry component, Coordinate pt) Constructs a GeometryLocation specifying a point inside an area geometry.IndexedFacetDistance
(Geometry geom) Creates a new distance-finding instance for a given targetGeometry
. -
Uses of Geometry in org.locationtech.jts.operation.distance3d
Methods in org.locationtech.jts.operation.distance3d with parameters of type GeometryModifier and TypeMethodDescriptionstatic double
Compute the distance between the nearest points of two geometries.static boolean
Distance3DOp.isWithinDistance
(Geometry g0, Geometry g1, double distance) Test whether two geometries lie within a given distance of each other.static Coordinate[]
Distance3DOp.nearestPoints
(Geometry g0, Geometry g1) Compute the the nearest points of two geometries.Constructors in org.locationtech.jts.operation.distance3d with parameters of type GeometryModifierConstructorDescriptionDistance3DOp
(Geometry g0, Geometry g1) Constructs a DistanceOp that computes the distance and nearest points between the two specified geometries.Distance3DOp
(Geometry g0, Geometry g1, double terminateDistance) Constructs a DistanceOp that computes the distance and nearest points between the two specified geometries. -
Uses of Geometry in org.locationtech.jts.operation.linemerge
Methods in org.locationtech.jts.operation.linemerge that return GeometryModifier and TypeMethodDescriptionLineSequencer.getSequencedLineStrings()
Returns theLineString
orMultiLineString
built by the sequencing process, if one exists.static Geometry
Methods in org.locationtech.jts.operation.linemerge with parameters of type GeometryModifier and TypeMethodDescriptionvoid
Adds a Geometry to be processed.void
Adds aGeometry
to be sequenced.static boolean
LineSequencer.isSequenced
(Geometry geom) Tests whether aGeometry
is sequenced correctly.static Geometry
-
Uses of Geometry in org.locationtech.jts.operation.overlay
Methods in org.locationtech.jts.operation.overlay that return GeometryModifier and TypeMethodDescriptionstatic Geometry
OverlayOp.createEmptyResult
(int overlayOpCode, Geometry a, Geometry b, GeometryFactory geomFact) Creates an empty result geometry of the appropriate dimension, based on the given overlay operation and the dimensions of the inputs.OverlayOp.getResultGeometry
(int overlayOpCode) Gets the result of the overlay for a given overlay operation.static Geometry
Computes an overlay operation for the given geometry arguments.Methods in org.locationtech.jts.operation.overlay with parameters of type GeometryModifier and TypeMethodDescriptionstatic Geometry
OverlayOp.createEmptyResult
(int overlayOpCode, Geometry a, Geometry b, GeometryFactory geomFact) Creates an empty result geometry of the appropriate dimension, based on the given overlay operation and the dimensions of the inputs.static Geometry
Computes an overlay operation for the given geometry arguments.Constructors in org.locationtech.jts.operation.overlay with parameters of type Geometry -
Uses of Geometry in org.locationtech.jts.operation.overlay.snap
Methods in org.locationtech.jts.operation.overlay.snap that return GeometryModifier and TypeMethodDescriptionstatic Geometry
SnapIfNeededOverlayOp.difference
(Geometry g0, Geometry g1) static Geometry
SnapOverlayOp.difference
(Geometry g0, Geometry g1) SnapIfNeededOverlayOp.getResultGeometry
(int opCode) SnapOverlayOp.getResultGeometry
(int opCode) static Geometry
SnapIfNeededOverlayOp.intersection
(Geometry g0, Geometry g1) static Geometry
SnapOverlayOp.intersection
(Geometry g0, Geometry g1) static Geometry
static Geometry
static Geometry[]
Snaps two geometries together with a given tolerance.Snaps the vertices in the componentLineString
s of the source geometry to the vertices of the given snap geometry.GeometrySnapper.snapToSelf
(double snapTolerance, boolean cleanResult) Snaps the vertices in the componentLineString
s of the source geometry to the vertices of the same geometry.static Geometry
GeometrySnapper.snapToSelf
(Geometry geom, double snapTolerance, boolean cleanResult) Snaps a geometry to itself.static Geometry
SnapIfNeededOverlayOp.symDifference
(Geometry g0, Geometry g1) static Geometry
SnapOverlayOp.symDifference
(Geometry g0, Geometry g1) static Geometry
static Geometry
Methods in org.locationtech.jts.operation.overlay.snap with parameters of type GeometryModifier and TypeMethodDescriptionstatic double
GeometrySnapper.computeOverlaySnapTolerance
(Geometry g) Estimates the snap tolerance for a Geometry, taking into account its precision model.static double
GeometrySnapper.computeOverlaySnapTolerance
(Geometry g0, Geometry g1) static double
GeometrySnapper.computeSizeBasedSnapTolerance
(Geometry g) static Geometry
SnapIfNeededOverlayOp.difference
(Geometry g0, Geometry g1) static Geometry
SnapOverlayOp.difference
(Geometry g0, Geometry g1) static Geometry
SnapIfNeededOverlayOp.intersection
(Geometry g0, Geometry g1) static Geometry
SnapOverlayOp.intersection
(Geometry g0, Geometry g1) static Geometry
static Geometry
static Geometry[]
Snaps two geometries together with a given tolerance.Snaps the vertices in the componentLineString
s of the source geometry to the vertices of the given snap geometry.static Geometry
GeometrySnapper.snapToSelf
(Geometry geom, double snapTolerance, boolean cleanResult) Snaps a geometry to itself.static Geometry
SnapIfNeededOverlayOp.symDifference
(Geometry g0, Geometry g1) static Geometry
SnapOverlayOp.symDifference
(Geometry g0, Geometry g1) static Geometry
static Geometry
Constructors in org.locationtech.jts.operation.overlay.snap with parameters of type GeometryModifierConstructorDescriptionGeometrySnapper
(Geometry srcGeom) Creates a new snapper acting on the given geometrySnapIfNeededOverlayOp
(Geometry g1, Geometry g2) SnapOverlayOp
(Geometry g1, Geometry g2) -
Uses of Geometry in org.locationtech.jts.operation.overlay.validate
Methods in org.locationtech.jts.operation.overlay.validate with parameters of type GeometryModifier and TypeMethodDescriptionstatic boolean
Constructors in org.locationtech.jts.operation.overlay.validate with parameters of type GeometryModifierConstructorDescriptionFuzzyPointLocator
(Geometry g, double boundaryDistanceTolerance) OverlayResultValidator
(Geometry a, Geometry b, Geometry result) -
Uses of Geometry in org.locationtech.jts.operation.overlayng
Methods in org.locationtech.jts.operation.overlayng that return GeometryModifier and TypeMethodDescriptionOverlayNG.getResult()
Gets the result of the overlay operation.Computes the overlay operation on the input geometries, if it can be determined that the result is either empty or equal to one of the input values.static Geometry
Computes an overlay operation on the given geometry operands, using the precision model of the geometry.static Geometry
OverlayNG.overlay
(Geometry geom0, Geometry geom1, int opCode, PrecisionModel pm) Computes an overlay operation for the given geometry operands, with the noding strategy determined by the precision model.static Geometry
OverlayNG.overlay
(Geometry geom0, Geometry geom1, int opCode, PrecisionModel pm, Noder noder) Computes an overlay operation on the given geometry operands, using a suppliedNoder
.static Geometry
Computes an overlay operation on the given geometry operands, using a suppliedNoder
.static Geometry
Overlay two geometries, using heuristics to ensure computation completes correctly.static Geometry
PrecisionReducer.reducePrecision
(Geometry geom, PrecisionModel pm) Reduces the precision of a geometry by rounding and snapping it to the suppliedPrecisionModel
.static Geometry
Unions a valid polygonal coverage or linear network.static Geometry
OverlayNGRobust.union
(Collection<Geometry> geoms) Computes the unary union of a collection of geometries using robust computation.static Geometry
OverlayNGRobust.union
(Collection<Geometry> geoms, GeometryFactory geomFact) Computes the unary union of a collection of geometries using robust computation.static Geometry
Computes the unary union of a geometry using robust computation.static Geometry
UnaryUnionNG.union
(Collection<Geometry> geoms, GeometryFactory geomFact, PrecisionModel pm) Unions a collection of geometries using a given precision model.static Geometry
UnaryUnionNG.union
(Collection<Geometry> geoms, PrecisionModel pm) Unions a collection of geometries using a given precision model.static Geometry
UnaryUnionNG.union
(Geometry geom, PrecisionModel pm) Unions a geometry (which is often a collection) using a given precision model.Methods in org.locationtech.jts.operation.overlayng with parameters of type GeometryModifier and TypeMethodDescriptionstatic double
PrecisionUtil.inherentScale
(Geometry geom) Computes the inherent scale of a geometry.static double
PrecisionUtil.inherentScale
(Geometry a, Geometry b) Computes the inherent scale of two geometries.Computes the overlay operation on the input geometries, if it can be determined that the result is either empty or equal to one of the input values.static Geometry
Computes an overlay operation on the given geometry operands, using the precision model of the geometry.static Geometry
OverlayNG.overlay
(Geometry geom0, Geometry geom1, int opCode, PrecisionModel pm) Computes an overlay operation for the given geometry operands, with the noding strategy determined by the precision model.static Geometry
OverlayNG.overlay
(Geometry geom0, Geometry geom1, int opCode, PrecisionModel pm, Noder noder) Computes an overlay operation on the given geometry operands, using a suppliedNoder
.static Geometry
Computes an overlay operation on the given geometry operands, using a suppliedNoder
.static Geometry
Overlay two geometries, using heuristics to ensure computation completes correctly.static Geometry
PrecisionReducer.reducePrecision
(Geometry geom, PrecisionModel pm) Reduces the precision of a geometry by rounding and snapping it to the suppliedPrecisionModel
.static PrecisionModel
Determines a precision model to use for robust overlay operations for one geometry.static PrecisionModel
Determines a precision model to use for robust overlay operations.static double
PrecisionUtil.robustScale
(Geometry a) Determines a scale factor which maximizes the digits of precision and is safe to use for overlay operations.static double
PrecisionUtil.robustScale
(Geometry a, Geometry b) Determines a scale factor which maximizes the digits of precision and is safe to use for overlay operations.static double
Computes a safe scale factor for a geometry.static double
Computes a safe scale factor for two geometries.static Geometry
Unions a valid polygonal coverage or linear network.static Geometry
Computes the unary union of a geometry using robust computation.static Geometry
UnaryUnionNG.union
(Geometry geom, PrecisionModel pm) Unions a geometry (which is often a collection) using a given precision model.Method parameters in org.locationtech.jts.operation.overlayng with type arguments of type GeometryModifier and TypeMethodDescriptionstatic Geometry
OverlayNGRobust.union
(Collection<Geometry> geoms) Computes the unary union of a collection of geometries using robust computation.static Geometry
OverlayNGRobust.union
(Collection<Geometry> geoms, GeometryFactory geomFact) Computes the unary union of a collection of geometries using robust computation.static Geometry
UnaryUnionNG.union
(Collection<Geometry> geoms, GeometryFactory geomFact, PrecisionModel pm) Unions a collection of geometries using a given precision model.static Geometry
UnaryUnionNG.union
(Collection<Geometry> geoms, PrecisionModel pm) Unions a collection of geometries using a given precision model.Constructors in org.locationtech.jts.operation.overlayng with parameters of type GeometryModifierConstructorDescriptionFastOverlayFilter
(Geometry geom) Creates an overlay operation on the given geometries using the precision model of the geometries.OverlayNG
(Geometry geom0, Geometry geom1, PrecisionModel pm, int opCode) Creates an overlay operation on the given geometries, with a defined precision model. -
Uses of Geometry in org.locationtech.jts.operation.polygonize
Methods in org.locationtech.jts.operation.polygonize that return GeometryModifier and TypeMethodDescriptionPolygonizer.getGeometry()
Gets a geometry representing the polygons formed by the polygonization.Methods in org.locationtech.jts.operation.polygonize with parameters of type Geometry -
Uses of Geometry in org.locationtech.jts.operation.predicate
Methods in org.locationtech.jts.operation.predicate with parameters of type GeometryModifier and TypeMethodDescriptionboolean
static boolean
Tests whether a rectangle contains a given geometry.boolean
RectangleIntersects.intersects
(Geometry geom) Tests whether the given Geometry intersects the query rectangle.static boolean
RectangleIntersects.intersects
(Polygon rectangle, Geometry b) Tests whether a rectangle intersects a given geometry. -
Uses of Geometry in org.locationtech.jts.operation.relate
Methods in org.locationtech.jts.operation.relate with parameters of type GeometryModifier and TypeMethodDescriptionstatic IntersectionMatrix
Computes theIntersectionMatrix
for the spatial relationship between twoGeometry
s, using the default (OGC SFS) Boundary Node Rulestatic IntersectionMatrix
RelateOp.relate
(Geometry a, Geometry b, BoundaryNodeRule boundaryNodeRule) Computes theIntersectionMatrix
for the spatial relationship between twoGeometry
s using a specified Boundary Node Rule.Constructors in org.locationtech.jts.operation.relate with parameters of type Geometry -
Uses of Geometry in org.locationtech.jts.operation.union
Methods in org.locationtech.jts.operation.union that return GeometryModifier and TypeMethodDescriptionSpatialPartition.getGeometry
(int s, int i) Gets a geometry in a given partitionCascadedPolygonUnion.union()
Computes the union of the input geometries.static Geometry
CascadedPolygonUnion.union
(Collection polys) static Geometry
CascadedPolygonUnion.union
(Collection polys, UnionStrategy unionFun) OverlapUnion.union()
Deprecated.Unions the input geometries, using the more performant overlap union algorithm if possible.static Geometry
OverlapUnion.union
(Geometry g0, Geometry g1, UnionStrategy unionFun) Deprecated.Union a pair of geometries, using the more performant overlap union algorithm if possible.PartitionedUnion.union()
static Geometry
PointGeometryUnion.union()
static Geometry
SparsePolygonUnion.union()
static Geometry
SparsePolygonUnion.union
(Collection geoms) static Geometry
UnaryUnionOp.union()
Gets the union of the input geometries.static Geometry
UnaryUnionOp.union
(Collection geoms) Computes the geometric union of aCollection
ofGeometry
s.static Geometry
UnaryUnionOp.union
(Collection geoms, GeometryFactory geomFact) Computes the geometric union of aCollection
ofGeometry
s.static Geometry
Constructs a unary union operation for aGeometry
(which may be aGeometryCollection
).UnionInteracting.union()
static Geometry
Computes the union of two geometries.Methods in org.locationtech.jts.operation.union with parameters of type GeometryModifier and TypeMethodDescriptionstatic Geometry
OverlapUnion.union
(Geometry g0, Geometry g1, UnionStrategy unionFun) Deprecated.Union a pair of geometries, using the more performant overlap union algorithm if possible.static Geometry
static Geometry
static Geometry
static Geometry
Constructs a unary union operation for aGeometry
(which may be aGeometryCollection
).static Geometry
Computes the union of two geometries.Constructors in org.locationtech.jts.operation.union with parameters of type GeometryModifierConstructorDescriptionOverlapUnion
(Geometry g0, Geometry g1) Deprecated.Creates a new instance for unioning the given geometries.OverlapUnion
(Geometry g0, Geometry g1, UnionStrategy unionFun) Deprecated.PointGeometryUnion
(Puntal pointGeom, Geometry otherGeom) SpatialPartition
(Geometry[] geoms, SpatialPartition.EquivalenceRelation rel) UnaryUnionOp
(Geometry geom) Constructs a unary union operation for aGeometry
(which may be aGeometryCollection
).UnionInteracting
(Geometry g0, Geometry g1) Constructor parameters in org.locationtech.jts.operation.union with type arguments of type GeometryModifierConstructorDescriptionPartitionedUnion
(Collection<Geometry> polys) SparsePolygonUnion
(Collection<Geometry> polys) -
Uses of Geometry in org.locationtech.jts.operation.valid
Methods in org.locationtech.jts.operation.valid with parameters of type GeometryModifier and TypeMethodDescriptionstatic Coordinate
IsSimpleOp.getNonSimpleLocation
(Geometry geom) Gets a non-simple location in a geometry, if any.boolean
RepeatedPointTester.hasRepeatedPoint
(Geometry g) static boolean
Tests whether a geometry is simple.static boolean
Tests whether aGeometry
is valid.Constructors in org.locationtech.jts.operation.valid with parameters of type GeometryModifierConstructorDescriptionIsSimpleOp
(Geometry geom) Creates a simplicity checker using the default SFS Mod-2 Boundary Node RuleIsSimpleOp
(Geometry geom, BoundaryNodeRule boundaryNodeRule) Creates a simplicity checker using a givenBoundaryNodeRule
Creates a new validator for a geometry. -
Uses of Geometry in org.locationtech.jts.precision
Methods in org.locationtech.jts.precision that return GeometryModifier and TypeMethodDescriptionComputes the buffer a geometry, using enhanced precision.static Geometry
Computes the buffer of aGeometry
, using enhanced precision.CommonBitsOp.difference
(Geometry geom0, Geometry geom1) Computes the set-theoretic difference of twoGeometry
s, using enhanced precision.static Geometry
EnhancedPrecisionOp.difference
(Geometry geom0, Geometry geom1) Computes the set-theoretic difference of twoGeometry
s, using enhanced precision.static Geometry
Gets a LineString containing two points which are at the Minimum Clearance distance for the given Geometry.static Geometry
CommonBitsOp.intersection
(Geometry geom0, Geometry geom1) Computes the set-theoretic intersection of twoGeometry
s, using enhanced precision.static Geometry
EnhancedPrecisionOp.intersection
(Geometry geom0, Geometry geom1) Computes the set-theoretic intersection of twoGeometry
s, using enhanced precision.Reduces the precision of a geometry, according to the specified strategy of this reducer.static Geometry
GeometryPrecisionReducer.reduce
(Geometry g, PrecisionModel precModel) Reduces precision of a geometry, ensuring output geometry is valid.Deprecated.static Geometry
SimpleGeometryPrecisionReducer.reduce
(Geometry g, PrecisionModel precModel) Deprecated.Convenience method for doing precision reduction on a single geometry, with collapses removed and keeping the geometry precision model the same.static Geometry
GeometryPrecisionReducer.reduceKeepCollapsed
(Geometry geom, PrecisionModel pm) Reduces precision of a geometry, ensuring output polygonal geometry is valid, and preserving collapsed linear elements.static Geometry
GeometryPrecisionReducer.reducePointwise
(Geometry g, PrecisionModel precModel) Reduce precision of a geometry in a pointwise way.CommonBitsRemover.removeCommonBits
(Geometry geom) Removes the common coordinate bits from a Geometry.CommonBitsOp.symDifference
(Geometry geom0, Geometry geom1) Computes the set-theoretic symmetric difference of two geometries, using enhanced precision.static Geometry
EnhancedPrecisionOp.symDifference
(Geometry geom0, Geometry geom1) Computes the set-theoretic symmetric difference of twoGeometry
s, using enhanced precision.Computes the set-theoretic union of twoGeometry
s, using enhanced precision.static Geometry
Computes the set-theoretic union of twoGeometry
s, using enhanced precision.Methods in org.locationtech.jts.precision with parameters of type GeometryModifier and TypeMethodDescriptionvoid
Add a geometry to the set of geometries whose common bits are being computed.void
CommonBitsRemover.addCommonBits
(Geometry geom) Adds the common coordinate bits back into a Geometry.Computes the buffer a geometry, using enhanced precision.static Geometry
Computes the buffer of aGeometry
, using enhanced precision.CommonBitsOp.difference
(Geometry geom0, Geometry geom1) Computes the set-theoretic difference of twoGeometry
s, using enhanced precision.static Geometry
EnhancedPrecisionOp.difference
(Geometry geom0, Geometry geom1) Computes the set-theoretic difference of twoGeometry
s, using enhanced precision.PrecisionReducerCoordinateOperation.edit
(Coordinate[] coordinates, Geometry geom) static double
MinimumClearance.getDistance
(Geometry g) Computes the Minimum Clearance distance for the given Geometry.static double
SimpleMinimumClearance.getDistance
(Geometry g) static Geometry
Gets a LineString containing two points which are at the Minimum Clearance distance for the given Geometry.static Geometry
CommonBitsOp.intersection
(Geometry geom0, Geometry geom1) Computes the set-theoretic intersection of twoGeometry
s, using enhanced precision.static Geometry
EnhancedPrecisionOp.intersection
(Geometry geom0, Geometry geom1) Computes the set-theoretic intersection of twoGeometry
s, using enhanced precision.Reduces the precision of a geometry, according to the specified strategy of this reducer.static Geometry
GeometryPrecisionReducer.reduce
(Geometry g, PrecisionModel precModel) Reduces precision of a geometry, ensuring output geometry is valid.Deprecated.static Geometry
SimpleGeometryPrecisionReducer.reduce
(Geometry g, PrecisionModel precModel) Deprecated.Convenience method for doing precision reduction on a single geometry, with collapses removed and keeping the geometry precision model the same.static Geometry
GeometryPrecisionReducer.reduceKeepCollapsed
(Geometry geom, PrecisionModel pm) Reduces precision of a geometry, ensuring output polygonal geometry is valid, and preserving collapsed linear elements.static Geometry
GeometryPrecisionReducer.reducePointwise
(Geometry g, PrecisionModel precModel) Reduce precision of a geometry in a pointwise way.CommonBitsRemover.removeCommonBits
(Geometry geom) Removes the common coordinate bits from a Geometry.CommonBitsOp.symDifference
(Geometry geom0, Geometry geom1) Computes the set-theoretic symmetric difference of two geometries, using enhanced precision.static Geometry
EnhancedPrecisionOp.symDifference
(Geometry geom0, Geometry geom1) Computes the set-theoretic symmetric difference of twoGeometry
s, using enhanced precision.Computes the set-theoretic union of twoGeometry
s, using enhanced precision.static Geometry
Computes the set-theoretic union of twoGeometry
s, using enhanced precision.Constructors in org.locationtech.jts.precision with parameters of type GeometryModifierConstructorDescriptionMinimumClearance
(Geometry geom) Creates an object to compute the Minimum Clearance for the given Geometry -
Uses of Geometry in org.locationtech.jts.shape
Methods in org.locationtech.jts.shape that return GeometryModifier and TypeMethodDescriptionstatic Geometry
CubicBezierCurve.bezierCurve
(Geometry geom, double alpha) Creates a geometry of linearized Cubic Bezier Curves defined by the segments of the input and a parameter controlling how curved the result should be.static Geometry
CubicBezierCurve.bezierCurve
(Geometry geom, double alpha, double skew) Creates a geometry of linearized Cubic Bezier Curves defined by the segments of the input and a parameter controlling how curved the result should be, with a skew factor affecting the curve shape at each vertex.static Geometry
CubicBezierCurve.bezierCurve
(Geometry geom, Geometry controlPoints) Creates a geometry of linearized Cubic Bezier Curves defined by the segments of the input and a list (or lists) of control points.abstract Geometry
GeometricShapeBuilder.getGeometry()
CubicBezierCurve.getResult()
Gets the computed linearized Bezier curve geometry.Methods in org.locationtech.jts.shape with parameters of type GeometryModifier and TypeMethodDescriptionstatic Geometry
CubicBezierCurve.bezierCurve
(Geometry geom, double alpha) Creates a geometry of linearized Cubic Bezier Curves defined by the segments of the input and a parameter controlling how curved the result should be.static Geometry
CubicBezierCurve.bezierCurve
(Geometry geom, double alpha, double skew) Creates a geometry of linearized Cubic Bezier Curves defined by the segments of the input and a parameter controlling how curved the result should be, with a skew factor affecting the curve shape at each vertex.static Geometry
CubicBezierCurve.bezierCurve
(Geometry geom, Geometry controlPoints) Creates a geometry of linearized Cubic Bezier Curves defined by the segments of the input and a list (or lists) of control points. -
Uses of Geometry in org.locationtech.jts.shape.fractal
Methods in org.locationtech.jts.shape.fractal that return GeometryModifier and TypeMethodDescriptionHilbertCurveBuilder.getGeometry()
KochSnowflakeBuilder.getGeometry()
MortonCurveBuilder.getGeometry()
SierpinskiCarpetBuilder.getGeometry()
-
Uses of Geometry in org.locationtech.jts.shape.random
Methods in org.locationtech.jts.shape.random that return GeometryModifier and TypeMethodDescriptionRandomPointsBuilder.getGeometry()
RandomPointsInGridBuilder.getGeometry()
Gets theMultiPoint
containing the generated pointMethods in org.locationtech.jts.shape.random with parameters of type Geometry -
Uses of Geometry in org.locationtech.jts.simplify
Methods in org.locationtech.jts.simplify that return GeometryModifier and TypeMethodDescriptionPolygonHullSimplifier.getResult()
Gets the result polygonal hull geometry.DouglasPeuckerSimplifier.getResultGeometry()
Gets the simplified geometry.TopologyPreservingSimplifier.getResultGeometry()
VWSimplifier.getResultGeometry()
Gets the simplified geometry.static Geometry
Computes a topology-preserving simplified hull of a polygonal geometry, with hull shape determined by a target parameter specifying the fraction of the input vertices retained in the result.static Geometry
PolygonHullSimplifier.hullByAreaDelta
(Geometry geom, boolean isOuter, double areaDeltaRatio) Computes a topology-preserving simplified hull of a polygonal geometry, with hull shape determined by a target parameter specifying the ratio of maximum difference in area to original area.static Geometry
Simplifies a geometry using a given tolerance.static Geometry
static Geometry
Simplifies a geometry using a given tolerance.Methods in org.locationtech.jts.simplify with parameters of type GeometryModifier and TypeMethodDescriptionstatic Geometry
Computes a topology-preserving simplified hull of a polygonal geometry, with hull shape determined by a target parameter specifying the fraction of the input vertices retained in the result.static Geometry
PolygonHullSimplifier.hullByAreaDelta
(Geometry geom, boolean isOuter, double areaDeltaRatio) Computes a topology-preserving simplified hull of a polygonal geometry, with hull shape determined by a target parameter specifying the ratio of maximum difference in area to original area.static Geometry
Simplifies a geometry using a given tolerance.static Geometry
static Geometry
Simplifies a geometry using a given tolerance.Constructors in org.locationtech.jts.simplify with parameters of type GeometryModifierConstructorDescriptionDouglasPeuckerSimplifier
(Geometry inputGeom) Creates a simplifier for a given geometry.PolygonHullSimplifier
(Geometry inputGeom, boolean isOuter) Creates a new instance to compute a simplified hull of a polygonal geometry.TopologyPreservingSimplifier
(Geometry inputGeom) VWSimplifier
(Geometry inputGeom) Creates a simplifier for a given geometry. -
Uses of Geometry in org.locationtech.jts.triangulate
Methods in org.locationtech.jts.triangulate that return GeometryModifier and TypeMethodDescriptionConformingDelaunayTriangulator.getConvexHull()
Gets the convex hull of all the sites in the triangulation, including constraint vertices.VoronoiDiagramBuilder.getDiagram
(GeometryFactory geomFact) Gets the faces of the computed diagram as aGeometryCollection
ofPolygon
s, clipped as specified.ConformingDelaunayTriangulationBuilder.getEdges
(GeometryFactory geomFact) Gets the edges of the computed triangulation as aMultiLineString
.DelaunayTriangulationBuilder.getEdges
(GeometryFactory geomFact) Gets the edges of the computed triangulation as aMultiLineString
.ConformingDelaunayTriangulationBuilder.getTriangles
(GeometryFactory geomFact) Gets the faces of the computed triangulation as aGeometryCollection
ofPolygon
.DelaunayTriangulationBuilder.getTriangles
(GeometryFactory geomFact) Gets the faces of the computed triangulation as aGeometryCollection
ofPolygon
.Methods in org.locationtech.jts.triangulate with parameters of type GeometryModifier and TypeMethodDescriptionstatic CoordinateList
DelaunayTriangulationBuilder.extractUniqueCoordinates
(Geometry geom) Extracts the uniqueCoordinate
s from the givenGeometry
.void
VertexTaggedGeometryDataMapper.loadSourceGeometries
(Geometry geomColl) void
ConformingDelaunayTriangulationBuilder.setConstraints
(Geometry constraintLines) Sets the linear constraints to be conformed to.void
Sets the sites (point or vertices) which will be triangulated.void
Sets the sites (vertices) which will be triangulated.void
Sets the sites (point or vertices) which will be diagrammed.void
VertexTaggedGeometryDataMapper.transferData
(Geometry targetGeom) Input is assumed to be a multiGeometry in which every component has its userData set to be a Coordinate which is the key to the output data. -
Uses of Geometry in org.locationtech.jts.triangulate.polygon
Methods in org.locationtech.jts.triangulate.polygon that return GeometryModifier and TypeMethodDescriptionConstrainedDelaunayTriangulator.getResult()
Gets the triangulation as aGeometryCollection
of triangularPolygon
s.PolygonTriangulator.getResult()
Gets the triangulation as aGeometryCollection
of triangularPolygon
s.static Geometry
ConstrainedDelaunayTriangulator.triangulate
(Geometry geom) Computes the Constrained Delaunay Triangulation of each polygon element in a geometry.static Geometry
PolygonTriangulator.triangulate
(Geometry geom) Computes a triangulation of each polygon in a geometry.Methods in org.locationtech.jts.triangulate.polygon with parameters of type GeometryModifier and TypeMethodDescriptionstatic Geometry
ConstrainedDelaunayTriangulator.triangulate
(Geometry geom) Computes the Constrained Delaunay Triangulation of each polygon element in a geometry.static Geometry
PolygonTriangulator.triangulate
(Geometry geom) Computes a triangulation of each polygon in a geometry.Constructors in org.locationtech.jts.triangulate.polygon with parameters of type GeometryModifierConstructorDescriptionConstrainedDelaunayTriangulator
(Geometry inputGeom) Constructs a new Constrained Delaunay triangulator.PolygonTriangulator
(Geometry inputGeom) Constructs a new triangulator. -
Uses of Geometry in org.locationtech.jts.triangulate.quadedge
Methods in org.locationtech.jts.triangulate.quadedge that return GeometryModifier and TypeMethodDescriptionQuadEdgeSubdivision.getEdges
(GeometryFactory geomFact) Gets the geometry for the edges in the subdivision as aMultiLineString
containing 2-point lines.QuadEdgeSubdivision.getTriangles
(GeometryFactory geomFact) Gets the geometry for the triangles in a triangulated subdivision as aGeometryCollection
of triangularPolygon
s.QuadEdgeSubdivision.getVoronoiDiagram
(GeometryFactory geomFact) Gets the cells in the Voronoi diagram for this triangulation.static Geometry
static Geometry
-
Uses of Geometry in org.locationtech.jts.triangulate.tri
Methods in org.locationtech.jts.triangulate.tri that return GeometryModifier and TypeMethodDescriptionstatic Geometry
Tri.toGeometry
(Collection<Tri> tris, GeometryFactory geomFact) Creates aGeometryCollection
ofPolygon
s representing the triangles in a list. -
Uses of Geometry in org.locationtech.jts.util
Methods in org.locationtech.jts.util with parameters of type GeometryModifier and TypeMethodDescriptionstatic boolean
Debug.hasSegment
(Geometry geom, Coordinate p0, Coordinate p1) static void
TestBuilderProxy.showIndicator
(Geometry geom) static void
TestBuilderProxy.showIndicator
(Geometry geom, Color lineClr) -
Uses of Geometry in org.locationtech.jtslab
Methods in org.locationtech.jtslab that return GeometryModifier and TypeMethodDescriptionstatic Geometry
ClipFunctions.clipByIntersection
(Geometry geom, Geometry rectangle) static Geometry
ClipFunctions.clipByIntersectionOpt
(Geometry geom, Geometry rectangle) static Geometry
static Geometry
ClipFunctions.clipPolyPrecise
(Geometry geom, Geometry rectangle, double scaleFactor) static Geometry
OverlayOptFunctions.intersectionOpt
(Geometry a, Geometry b) Use spatial predicates as a filter in front of intersection.static Geometry
OverlayOptFunctions.intersectionOptPrep
(Geometry a, Geometry b) Use prepared geometry spatial predicates as a filter in front of intersection, with the first operand prepared.static Geometry
IteratedOverlayFunctions.overlayIndexedNG
(Geometry coll) static Geometry
static Geometry
IteratedOverlayFunctions.overlayOld
(Geometry coll) static Geometry
static Geometry
RemoverFunctions.removeSmallHoles
(Geometry geom, double areaTolerance) Methods in org.locationtech.jtslab with parameters of type GeometryModifier and TypeMethodDescriptionstatic double
static double
EdgeRayFunctions.checkIntersectionArea
(Geometry geom0, Geometry geom1) static Geometry
ClipFunctions.clipByIntersection
(Geometry geom, Geometry rectangle) static Geometry
ClipFunctions.clipByIntersectionOpt
(Geometry geom, Geometry rectangle) static Geometry
static Geometry
ClipFunctions.clipPolyPrecise
(Geometry geom, Geometry rectangle, double scaleFactor) static double
EdgeRayFunctions.intersectionArea
(Geometry geom0, Geometry geom1) static Geometry
OverlayOptFunctions.intersectionOpt
(Geometry a, Geometry b) Use spatial predicates as a filter in front of intersection.static Geometry
OverlayOptFunctions.intersectionOptPrep
(Geometry a, Geometry b) Use prepared geometry spatial predicates as a filter in front of intersection, with the first operand prepared.static Geometry
IteratedOverlayFunctions.overlayIndexedNG
(Geometry coll) static Geometry
static Geometry
IteratedOverlayFunctions.overlayOld
(Geometry coll) static Geometry
static Geometry
RemoverFunctions.removeSmallHoles
(Geometry geom, double areaTolerance) -
Uses of Geometry in org.locationtech.jtslab.clean
Methods in org.locationtech.jtslab.clean that return GeometryModifier and TypeMethodDescriptionstatic Geometry
Removes invalid holes from the polygons in a geometry.static Geometry
Removes small holes from the polygons in a geometry.HoleRemover.getResult()
Gets the cleaned geometry.InvalidHoleRemover.getResult()
Gets the cleaned geometry.Methods in org.locationtech.jtslab.clean with parameters of type GeometryModifier and TypeMethodDescriptionstatic Geometry
Removes invalid holes from the polygons in a geometry.static Geometry
Removes small holes from the polygons in a geometry.boolean
Constructors in org.locationtech.jtslab.clean with parameters of type GeometryModifierConstructorDescriptionHoleRemover
(Geometry geom, HoleRemover.Predicate isRemoved) Creates a new hole remover instance.InvalidHoleRemover
(Geometry geom) Creates a new invalid hole remover instance. -
Uses of Geometry in org.locationtech.jtslab.clip
Methods in org.locationtech.jtslab.clip that return GeometryModifier and TypeMethodDescriptionstatic Geometry
static Geometry
RectangleClipPolygon.clip
(Geometry geom, Geometry rectangle, PrecisionModel pm) RectangleClipPolygon.clipCollection
(Geometry geom) Methods in org.locationtech.jtslab.clip with parameters of type GeometryModifier and TypeMethodDescriptionstatic Geometry
static Geometry
RectangleClipPolygon.clip
(Geometry geom, Geometry rectangle, PrecisionModel pm) RectangleClipPolygon.clipCollection
(Geometry geom) Constructors in org.locationtech.jtslab.clip with parameters of type GeometryModifierConstructorDescriptionRectangleClipPolygon
(Geometry clipRectangle) RectangleClipPolygon
(Geometry clipRectangle, PrecisionModel pm) -
Uses of Geometry in org.locationtech.jtslab.edgeray
Methods in org.locationtech.jtslab.edgeray with parameters of type GeometryModifier and TypeMethodDescriptionstatic double
static double
Constructors in org.locationtech.jtslab.edgeray with parameters of type GeometryModifierConstructorDescriptionEdgeRayArea
(Geometry geom) EdgeRayIntersectionArea
(Geometry geom0, Geometry geom1) -
Uses of Geometry in org.locationtech.jtslab.geom.util
Methods in org.locationtech.jtslab.geom.util that return GeometryModifier and TypeMethodDescriptionfinal Geometry
GeometryEditorEx.CoordinateOperation.edit
(Geometry geometry, GeometryFactory targetFactory) final Geometry
GeometryEditorEx.CoordinateSequenceOperation.edit
(Geometry geometry, GeometryFactory targetFactory) Edit aGeometry
.GeometryEditorEx.GeometryEditorOperation.edit
(Geometry geometry, GeometryFactory targetFactory) Edits a Geometry by returning a new Geometry with a modification.GeometryEditorEx.NoOpGeometryOperation.edit
(Geometry geometry, GeometryFactory targetFactory) Methods in org.locationtech.jtslab.geom.util with parameters of type GeometryModifier and TypeMethodDescriptionabstract Coordinate[]
GeometryEditorEx.CoordinateOperation.edit
(Coordinate[] coordinates, Geometry geometry) Edits the array ofCoordinate
s from aGeometry
.final Geometry
GeometryEditorEx.CoordinateOperation.edit
(Geometry geometry, GeometryFactory targetFactory) abstract CoordinateSequence
GeometryEditorEx.CoordinateSequenceOperation.edit
(CoordinateSequence coordSeq, Geometry geometry, GeometryFactory targetFactory) Edits aCoordinateSequence
from aGeometry
.final Geometry
GeometryEditorEx.CoordinateSequenceOperation.edit
(Geometry geometry, GeometryFactory targetFactory) Edit aGeometry
.GeometryEditorEx.GeometryEditorOperation.edit
(Geometry geometry, GeometryFactory targetFactory) Edits a Geometry by returning a new Geometry with a modification.GeometryEditorEx.NoOpGeometryOperation.edit
(Geometry geometry, GeometryFactory targetFactory)