Uses of Class
org.locationtech.jts.geom.Polygon
Packages that use Polygon
Package
Description
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Classes to compute distance metrics between geometries.
Classes to determine the topological location of points in geometries.
Classes to perform conversions from Java2D shape objects.
Classes to perform densification on geometries.
Contains the
Geometry
interface hierarchy and supporting classes.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.
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
An API for polygonizing sets of lines.
Classes which implement topological predicates optimized for particular kinds of geometries.
Provides classes for testing the validity of geometries.
Classes which implement algorithms for simplifying or generalizing geometries.
Classes to implement a topological subdivision of quadeges, to support creating triangulations
and Voronoi diagrams.
Contains support classes for the Java Topology Suite.
-
Uses of Polygon in org.locationtech.jts.algorithm
Fields in org.locationtech.jts.algorithm declared as PolygonMethods in org.locationtech.jts.algorithm with parameters of type PolygonModifier and TypeMethodDescriptionprivate void
static double
InteriorPointArea.SafeBisectorFinder.getBisectorY
(Polygon poly) private int
PointLocator.locateInPolygon
(Coordinate p, Polygon poly) Constructors in org.locationtech.jts.algorithm with parameters of type Polygon -
Uses of Polygon in org.locationtech.jts.algorithm.distance
Methods in org.locationtech.jts.algorithm.distance with parameters of type PolygonModifier and TypeMethodDescriptionstatic void
DistanceToPoint.computeDistance
(Polygon poly, Coordinate pt, PointPairDistance ptDist) -
Uses of Polygon in org.locationtech.jts.algorithm.locate
Methods in org.locationtech.jts.algorithm.locate with parameters of type PolygonModifier and TypeMethodDescriptionstatic boolean
SimplePointInAreaLocator.containsPointInPolygon
(Coordinate p, Polygon poly) Determines whether a point lies in aPolygon
.static int
SimplePointInAreaLocator.locatePointInPolygon
(Coordinate p, Polygon poly) -
Uses of Polygon in org.locationtech.jts.awt
Methods in org.locationtech.jts.awt with parameters of type Polygon -
Uses of Polygon in org.locationtech.jts.densify
Methods in org.locationtech.jts.densify with parameters of type PolygonModifier and TypeMethodDescriptionprotected Geometry
Densifier.DensifyTransformer.transformPolygon
(Polygon geom, Geometry parent) -
Uses of Polygon in org.locationtech.jts.geom
Methods in org.locationtech.jts.geom that return PolygonModifier and TypeMethodDescriptionPolygon.copy()
Creates and returns a full copy of thisPolygon
object.GeometryFactory.createPolygon()
GeometryFactory.createPolygon
(Coordinate[] shell) Constructs aPolygon
with the given exterior boundary.GeometryFactory.createPolygon
(CoordinateSequence shell) Constructs aPolygon
with the given exterior boundary.GeometryFactory.createPolygon
(LinearRing shell) Constructs aPolygon
with the given exterior boundary.GeometryFactory.createPolygon
(LinearRing shell, LinearRing[] holes) Constructs aPolygon
with the given exterior boundary and interior boundaries.static Polygon[]
GeometryFactory.toPolygonArray
(Collection polygons) Converts theList
to an array.Methods in org.locationtech.jts.geom with parameters of type PolygonModifier and TypeMethodDescriptionGeometryFactory.createMultiPolygon
(Polygon[] polygons) Creates a MultiPolygon using the given Polygons; a null or empty array will create an empty Polygon.Constructors in org.locationtech.jts.geom with parameters of type PolygonModifierConstructorDescriptionMultiPolygon
(Polygon[] polygons, GeometryFactory factory) MultiPolygon
(Polygon[] polygons, PrecisionModel precisionModel, int SRID) Deprecated.Use GeometryFactory instead -
Uses of Polygon in org.locationtech.jts.geom.util
Methods in org.locationtech.jts.geom.util that return PolygonModifier and TypeMethodDescriptionprivate Polygon
GeometryEditor.editPolygon
(Polygon polygon, GeometryEditor.GeometryEditorOperation operation) Methods in org.locationtech.jts.geom.util with parameters of type PolygonModifier and TypeMethodDescriptionprivate Polygon
GeometryEditor.editPolygon
(Polygon polygon, GeometryEditor.GeometryEditorOperation operation) protected Geometry
GeometryTransformer.transformPolygon
(Polygon geom, Geometry parent) -
Uses of Polygon in org.locationtech.jts.geomgraph
Methods in org.locationtech.jts.geomgraph that return PolygonMethods in org.locationtech.jts.geomgraph with parameters of type Polygon -
Uses of Polygon in org.locationtech.jts.io
Methods in org.locationtech.jts.io that return PolygonModifier and TypeMethodDescriptionprivate Polygon
WKBReader.readPolygon()
private Polygon
WKTReader.readPolygonText()
Creates aPolygon
using the next token in the stream.Methods in org.locationtech.jts.io with parameters of type PolygonModifier and TypeMethodDescriptionprivate void
WKTWriter.appendPolygonTaggedText
(Polygon polygon, int level, Writer writer) Converts aPolygon
to <Polygon Tagged Text> format, then appends it to the writer.private void
WKTWriter.appendPolygonText
(Polygon polygon, int level, boolean indentFirst, Writer writer) Converts aPolygon
to <Polygon Text> format, then appends it to the writer.private void
WKBWriter.writePolygon
(Polygon poly, OutStream os) -
Uses of Polygon in org.locationtech.jts.io.geojson
Methods in org.locationtech.jts.io.geojson with parameters of type PolygonModifier and TypeMethodDescriptionprivate List
<org.json.simple.JSONAware> GeoJsonWriter.makeJsonAware
(Polygon poly) -
Uses of Polygon in org.locationtech.jts.io.gml2
Methods in org.locationtech.jts.io.gml2 with parameters of type PolygonModifier and TypeMethodDescriptionprivate void
GMLWriter.writePolygon
(Polygon p, Writer writer, int level) -
Uses of Polygon in org.locationtech.jts.io.kml
Methods in org.locationtech.jts.io.kml with parameters of type PolygonModifier and TypeMethodDescriptionprivate void
KMLWriter.writePolygon
(Polygon p, String attributes, int level, StringBuffer buf) -
Uses of Polygon in org.locationtech.jts.operation.buffer
Methods in org.locationtech.jts.operation.buffer with parameters of type Polygon -
Uses of Polygon in org.locationtech.jts.operation.buffer.validate
Methods in org.locationtech.jts.operation.buffer.validate with parameters of type PolygonModifier and TypeMethodDescriptionstatic void
DistanceToPointFinder.computeDistance
(Polygon poly, Coordinate pt, PointPairDistance ptDist) -
Uses of Polygon in org.locationtech.jts.operation.distance
Methods in org.locationtech.jts.operation.distance with parameters of type PolygonModifier and TypeMethodDescriptionprivate void
DistanceOp.computeContainmentDistance
(GeometryLocation ptLoc, Polygon poly, GeometryLocation[] locPtPoly) -
Uses of Polygon in org.locationtech.jts.operation.distance3d
Fields in org.locationtech.jts.operation.distance3d declared as PolygonMethods in org.locationtech.jts.operation.distance3d that return PolygonMethods in org.locationtech.jts.operation.distance3d with parameters of type PolygonModifier and TypeMethodDescriptionprivate 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.Constructors in org.locationtech.jts.operation.distance3d with parameters of type Polygon -
Uses of Polygon in org.locationtech.jts.operation.polygonize
Methods in org.locationtech.jts.operation.polygonize that return PolygonModifier and TypeMethodDescriptionEdgeRing.getPolygon()
Computes thePolygon
formed by this ring and any contained holes. -
Uses of Polygon in org.locationtech.jts.operation.predicate
Fields in org.locationtech.jts.operation.predicate declared as PolygonMethods in org.locationtech.jts.operation.predicate with parameters of type PolygonModifier and TypeMethodDescriptionstatic boolean
Tests whether a rectangle contains a given geometry.static boolean
RectangleIntersects.intersects
(Polygon rectangle, Geometry b) Tests whether a rectangle intersects a given geometry.Constructors in org.locationtech.jts.operation.predicate with parameters of type PolygonModifierConstructorDescriptionGeometryContainsPointVisitor
(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 -
Uses of Polygon in org.locationtech.jts.operation.valid
Methods in org.locationtech.jts.operation.valid with parameters of type PolygonModifier and TypeMethodDescriptionprivate 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) -
Uses of Polygon in org.locationtech.jts.simplify
Methods in org.locationtech.jts.simplify with parameters of type PolygonModifier and TypeMethodDescriptionprotected Geometry
DouglasPeuckerSimplifier.DPTransformer.transformPolygon
(Polygon geom, Geometry parent) Simplifies a polygon, fixing it if required.protected Geometry
VWSimplifier.VWTransformer.transformPolygon
(Polygon geom, Geometry parent) Simplifies a polygon, fixing it if required. -
Uses of Polygon in org.locationtech.jts.triangulate.quadedge
Methods in org.locationtech.jts.triangulate.quadedge that return PolygonModifier and TypeMethodDescriptionQuadEdgeTriangle.getGeometry
(GeometryFactory fact) QuadEdgeSubdivision.getVoronoiCellPolygon
(QuadEdge qe, GeometryFactory geomFact) Gets the Voronoi cell around a site specified by the origin of a QuadEdge. -
Uses of Polygon in org.locationtech.jts.util
Methods in org.locationtech.jts.util that return PolygonModifier and TypeMethodDescriptionGeometricShapeFactory.createArcPolygon
(double startAng, double angExtent) Creates an elliptical arc polygon.GeometricShapeFactory.createCircle()
Creates a circular or ellipticalPolygon
.GeometricShapeFactory.createEllipse()
Creates an ellipticalPolygon
.GeometricShapeFactory.createRectangle()
Creates a rectangularPolygon
.GeometricShapeFactory.createSquircle()
Creates a squircularPolygon
.GeometricShapeFactory.createSupercircle
(double power) Creates a supercircularPolygon
of a given positive power. -
Uses of Polygon in org.locationtech.jtstest.clean
Methods in org.locationtech.jtstest.clean that return PolygonMethods in org.locationtech.jtstest.clean with parameters of type Polygon -
Uses of Polygon in org.locationtech.jtstest.testbuilder
Fields in org.locationtech.jtstest.testbuilder declared as PolygonConstructors in org.locationtech.jtstest.testbuilder with parameters of type PolygonModifierConstructorDescription(package private)
PolygonNode
(Polygon poly, GeometryContext context) -
Uses of Polygon in org.locationtech.jtstest.testbuilder.geom
Methods in org.locationtech.jtstest.testbuilder.geom that return PolygonModifier and TypeMethodDescriptionGeometryCombiner.addHole
(Polygon poly, LinearRing hole) private static Polygon
GeometryCombiner.findPolygonContaining
(Geometry geom, Coordinate pt) Methods in org.locationtech.jtstest.testbuilder.geom with parameters of type PolygonModifier and TypeMethodDescriptionGeometryCombiner.addHole
(Polygon poly, LinearRing hole) private void
FacetLocater.findLocations
(Stack path, Polygon poly, List locations) -
Uses of Polygon in org.locationtech.jtstest.util.io
Methods in org.locationtech.jtstest.util.io with parameters of type PolygonModifier and TypeMethodDescriptionprivate void
SVGWriter.appendPolygon
(Polygon polygon, int level, Writer writer) Converts aPolygon
to <Polygon Tagged Text> format, then appends it to the writer.private void
SVGWriter.appendPolygonPath
(Polygon polygon, int level, boolean indentFirst, Writer writer) private void
SVGWriter.appendPolygonPolygon
(Polygon polygon, int level, boolean indentFirst, Writer writer) Converts aPolygon
to <Polygon Text> format, then appends it to the writer.