Package | Description |
---|---|
org.locationtech.jts.algorithm |
Contains classes and interfaces implementing fundamental computational geometry algorithms.
|
org.locationtech.jts.algorithm.distance |
Classes to compute distance metrics between geometries.
|
org.locationtech.jts.algorithm.locate |
Classes to determine the topological location of points in geometries.
|
org.locationtech.jts.awt |
Classes to perform conversions from Java2D shape objects.
|
org.locationtech.jts.densify |
Classes to perform densification on geometries.
|
org.locationtech.jts.geom |
Contains the
Geometry interface hierarchy and supporting classes. |
org.locationtech.jts.geom.util |
Provides classes that parse and modify Geometry objects.
|
org.locationtech.jts.geomgraph |
Contains classes that implement topology graphs.
|
org.locationtech.jts.io |
Contains the interfaces for converting JTS objects to and from other formats.
|
org.locationtech.jts.io.geojson | |
org.locationtech.jts.io.gml2 |
Classes to read and write the GML2 geometry format.
|
org.locationtech.jts.io.kml | |
org.locationtech.jts.operation.buffer |
Provides classes for computing buffers of geometries
|
org.locationtech.jts.operation.buffer.validate |
Classes to perform validation of the results of buffer operations.
|
org.locationtech.jts.operation.distance |
Provides classes for computing the distance between geometries
|
org.locationtech.jts.operation.distance3d | |
org.locationtech.jts.operation.polygonize |
An API for polygonizing sets of lines.
|
org.locationtech.jts.operation.predicate |
Classes which implement topological predicates optimized for particular kinds of geometries.
|
org.locationtech.jts.operation.valid |
Provides classes for testing the validity of geometries.
|
org.locationtech.jts.simplify |
Classes which implement algorithms for simplifying or generalizing geometries.
|
org.locationtech.jts.triangulate.quadedge |
Classes to implement a topological subdivision of quadeges, to support creating triangulations
and Voronoi diagrams.
|
org.locationtech.jts.util |
Contains support classes for the Java Topology Suite.
|
org.locationtech.jtstest.clean | |
org.locationtech.jtstest.testbuilder | |
org.locationtech.jtstest.testbuilder.geom | |
org.locationtech.jtstest.util.io |
Modifier and Type | Field and Description |
---|---|
private Polygon |
InteriorPointArea.SafeBisectorFinder.poly |
Modifier and Type | Method and Description |
---|---|
private void |
Centroid.add(Polygon poly) |
static double |
InteriorPointArea.SafeBisectorFinder.getBisectorY(Polygon poly) |
private int |
PointLocator.locateInPolygon(Coordinate p,
Polygon poly) |
Constructor and Description |
---|
SafeBisectorFinder(Polygon poly) |
Modifier and Type | Method and Description |
---|---|
static void |
DistanceToPoint.computeDistance(Polygon poly,
Coordinate pt,
PointPairDistance ptDist) |
Modifier and Type | Method and Description |
---|---|
static boolean |
SimplePointInAreaLocator.containsPointInPolygon(Coordinate p,
Polygon poly)
Determines whether a point lies in a
Polygon . |
static int |
SimplePointInAreaLocator.locatePointInPolygon(Coordinate p,
Polygon poly)
|
Modifier and Type | Method and Description |
---|---|
private java.awt.Shape |
ShapeWriter.toShape(Polygon p) |
Modifier and Type | Method and Description |
---|---|
protected Geometry |
Densifier.DensifyTransformer.transformPolygon(Polygon geom,
Geometry parent) |
Modifier and Type | Method and Description |
---|---|
Polygon |
Polygon.copy()
Creates and returns a full copy of this
Polygon object. |
Polygon |
GeometryFactory.createPolygon() |
Polygon |
GeometryFactory.createPolygon(Coordinate[] shell)
Constructs a
Polygon with the given exterior boundary. |
Polygon |
GeometryFactory.createPolygon(CoordinateSequence shell)
Constructs a
Polygon with the given exterior boundary. |
Polygon |
GeometryFactory.createPolygon(LinearRing shell)
Constructs a
Polygon with the given exterior boundary. |
Polygon |
GeometryFactory.createPolygon(LinearRing shell,
LinearRing[] holes)
Constructs a
Polygon with the given exterior boundary and
interior boundaries. |
static Polygon[] |
GeometryFactory.toPolygonArray(java.util.Collection polygons)
Converts the
List to an array. |
Modifier and Type | Method and Description |
---|---|
MultiPolygon |
GeometryFactory.createMultiPolygon(Polygon[] polygons)
Creates a MultiPolygon using the given Polygons; a null or empty array
will create an empty Polygon.
|
Constructor and Description |
---|
MultiPolygon(Polygon[] polygons,
GeometryFactory factory) |
MultiPolygon(Polygon[] polygons,
PrecisionModel precisionModel,
int SRID)
Deprecated.
Use GeometryFactory instead
|
Modifier and Type | Method and Description |
---|---|
private Polygon |
GeometryEditor.editPolygon(Polygon polygon,
GeometryEditor.GeometryEditorOperation operation) |
Modifier and Type | Method and Description |
---|---|
private Polygon |
GeometryEditor.editPolygon(Polygon polygon,
GeometryEditor.GeometryEditorOperation operation) |
protected Geometry |
GeometryTransformer.transformPolygon(Polygon geom,
Geometry parent) |
Modifier and Type | Method and Description |
---|---|
Polygon |
EdgeRing.toPolygon(GeometryFactory geometryFactory) |
Modifier and Type | Method and Description |
---|---|
private void |
GeometryGraph.addPolygon(Polygon p) |
Modifier and Type | Method and Description |
---|---|
private Polygon |
WKBReader.readPolygon() |
private Polygon |
WKTReader.readPolygonText()
Creates a
Polygon using the next token in the stream. |
Modifier and Type | Method and Description |
---|---|
private void |
WKTWriter.appendPolygonTaggedText(Polygon polygon,
int level,
java.io.Writer writer)
Converts a
Polygon to <Polygon Tagged Text> format,
then appends it to the writer. |
private void |
WKTWriter.appendPolygonText(Polygon polygon,
int level,
boolean indentFirst,
java.io.Writer writer)
Converts a
Polygon to <Polygon Text> format, then
appends it to the writer. |
private void |
WKBWriter.writePolygon(Polygon poly,
OutStream os) |
Modifier and Type | Method and Description |
---|---|
private java.util.List<org.json.simple.JSONAware> |
GeoJsonWriter.makeJsonAware(Polygon poly) |
Modifier and Type | Method and Description |
---|---|
private void |
GMLWriter.writePolygon(Polygon p,
java.io.Writer writer,
int level) |
Modifier and Type | Method and Description |
---|---|
private void |
KMLWriter.writePolygon(Polygon p,
java.lang.String attributes,
int level,
java.lang.StringBuffer buf) |
Modifier and Type | Method and Description |
---|---|
private void |
OffsetCurveSetBuilder.addPolygon(Polygon p) |
Modifier and Type | Method and Description |
---|---|
static void |
DistanceToPointFinder.computeDistance(Polygon poly,
Coordinate pt,
PointPairDistance ptDist) |
Modifier and Type | Method and Description |
---|---|
private void |
DistanceOp.computeContainmentDistance(GeometryLocation ptLoc,
Polygon poly,
GeometryLocation[] locPtPoly) |
Modifier and Type | Field and Description |
---|---|
private Polygon |
PlanarPolygon3D.poly |
Modifier and Type | Method and Description |
---|---|
Polygon |
PlanarPolygon3D.getPolygon() |
Modifier and Type | Method and Description |
---|---|
private void |
Distance3DOp.computeMinDistancePolygonPolygon(PlanarPolygon3D poly0,
Polygon poly1,
boolean flip)
Computes distance between two polygons.
|
private void |
Distance3DOp.computeMinDistancePolygonRings(PlanarPolygon3D poly,
Polygon ringPoly,
boolean flip)
Compute distance between a polygon and the rings of another.
|
private Plane3D |
PlanarPolygon3D.findBestFitPlane(Polygon poly)
Finds a best-fit plane for the polygon,
by sampling a few points from the exterior ring.
|
Constructor and Description |
---|
PlanarPolygon3D(Polygon poly) |
Modifier and Type | Method and Description |
---|---|
Polygon |
EdgeRing.getPolygon()
Computes the
Polygon formed by this ring and any contained holes. |
Modifier and Type | Field and Description |
---|---|
private Polygon |
RectangleIntersects.rectangle |
Modifier and Type | Method and Description |
---|---|
static boolean |
RectangleContains.contains(Polygon rectangle,
Geometry b)
Tests whether a rectangle contains a given geometry.
|
static boolean |
RectangleIntersects.intersects(Polygon rectangle,
Geometry b)
Tests whether a rectangle intersects a given geometry.
|
Constructor and Description |
---|
GeometryContainsPointVisitor(Polygon rectangle) |
RectangleContains(Polygon rectangle)
Create a new contains computer for two geometries.
|
RectangleIntersects(Polygon rectangle)
Create a new intersects computer for a rectangle.
|
RectangleIntersectsSegmentVisitor(Polygon rectangle)
Creates a visitor for checking rectangle intersection
with segments
|
Modifier and Type | Method and Description |
---|---|
private void |
IsValidOp.checkClosedRings(Polygon poly) |
private void |
IsValidOp.checkHolesInShell(Polygon p,
GeometryGraph graph)
Tests that each hole is inside the polygon shell.
|
private void |
IsValidOp.checkHolesNotNested(Polygon p,
GeometryGraph graph)
Tests that no hole is nested inside another hole.
|
private void |
IsValidOp.checkInvalidCoordinates(Polygon poly) |
private void |
IsValidOp.checkShellNotNested(LinearRing shell,
Polygon p,
GeometryGraph graph)
Check if a shell is incorrectly nested within a polygon.
|
private void |
IsValidOp.checkValid(Polygon g)
Checks the validity of a polygon.
|
private boolean |
RepeatedPointTester.hasRepeatedPoint(Polygon p) |
Modifier and Type | Method and Description |
---|---|
protected Geometry |
VWSimplifier.VWTransformer.transformPolygon(Polygon geom,
Geometry parent)
Simplifies a polygon, fixing it if required.
|
protected Geometry |
DouglasPeuckerSimplifier.DPTransformer.transformPolygon(Polygon geom,
Geometry parent)
Simplifies a polygon, fixing it if required.
|
Modifier and Type | Method and Description |
---|---|
Polygon |
QuadEdgeTriangle.getGeometry(GeometryFactory fact) |
Polygon |
QuadEdgeSubdivision.getVoronoiCellPolygon(QuadEdge qe,
GeometryFactory geomFact)
Gets the Voronoi cell around a site specified
by the origin of a QuadEdge.
|
Modifier and Type | Method and Description |
---|---|
Polygon |
GeometricShapeFactory.createArcPolygon(double startAng,
double angExtent)
Creates an elliptical arc polygon.
|
Polygon |
GeometricShapeFactory.createCircle()
Creates a circular or elliptical
Polygon . |
Polygon |
GeometricShapeFactory.createEllipse()
Creates an elliptical
Polygon . |
Polygon |
GeometricShapeFactory.createRectangle()
Creates a rectangular
Polygon . |
Polygon |
GeometricShapeFactory.createSquircle()
Creates a squircular
Polygon . |
Polygon |
GeometricShapeFactory.createSupercircle(double power)
Creates a supercircular
Polygon
of a given positive power. |
Modifier and Type | Method and Description |
---|---|
private Polygon |
CleanDuplicatePoints.clean(Polygon poly) |
Modifier and Type | Method and Description |
---|---|
private Polygon |
CleanDuplicatePoints.clean(Polygon poly) |
Modifier and Type | Field and Description |
---|---|
(package private) Polygon |
PolygonNode.poly |
Constructor and Description |
---|
PolygonNode(Polygon poly,
GeometryContext context) |
Modifier and Type | Method and Description |
---|---|
Polygon |
GeometryCombiner.addHole(Polygon poly,
LinearRing hole) |
private static Polygon |
GeometryCombiner.findPolygonContaining(Geometry geom,
Coordinate pt) |
Modifier and Type | Method and Description |
---|---|
Polygon |
GeometryCombiner.addHole(Polygon poly,
LinearRing hole) |
private void |
FacetLocater.findLocations(java.util.Stack path,
Polygon poly,
java.util.List locations) |
Modifier and Type | Method and Description |
---|---|
private void |
SVGWriter.appendPolygon(Polygon polygon,
int level,
java.io.Writer writer)
Converts a
Polygon to <Polygon Tagged Text> format,
then appends it to the writer. |
private void |
SVGWriter.appendPolygonPath(Polygon polygon,
int level,
boolean indentFirst,
java.io.Writer writer) |
private void |
SVGWriter.appendPolygonPolygon(Polygon polygon,
int level,
boolean indentFirst,
java.io.Writer writer)
Converts a
Polygon to <Polygon Text> format, then
appends it to the writer. |