Uses of Class
org.locationtech.jts.geom.Polygon
-
Packages that use Polygon 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 theGeometry
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 geometriesorg.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 geometriesorg.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 -
-
Uses of Polygon in org.locationtech.jts.algorithm
Fields in org.locationtech.jts.algorithm declared as Polygon Modifier and Type Field Description private Polygon
InteriorPointArea.SafeBisectorFinder. poly
Methods in org.locationtech.jts.algorithm with parameters of type Polygon Modifier and Type Method Description private void
Centroid. add(Polygon poly)
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 Constructor Description SafeBisectorFinder(Polygon poly)
-
Uses of Polygon in org.locationtech.jts.algorithm.distance
Methods in org.locationtech.jts.algorithm.distance with parameters of type Polygon Modifier and Type Method Description static 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 Polygon Modifier and Type Method Description static 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 Modifier and Type Method Description private java.awt.Shape
ShapeWriter. toShape(Polygon p)
-
Uses of Polygon in org.locationtech.jts.densify
Methods in org.locationtech.jts.densify with parameters of type Polygon Modifier and Type Method Description protected Geometry
Densifier.DensifyTransformer. transformPolygon(Polygon geom, Geometry parent)
-
Uses of Polygon in org.locationtech.jts.geom
Methods in org.locationtech.jts.geom that return Polygon Modifier and Type Method Description Polygon
Polygon. copy()
Creates and returns a full copy of thisPolygon
object.Polygon
GeometryFactory. createPolygon()
Polygon
GeometryFactory. createPolygon(Coordinate[] shell)
Constructs aPolygon
with the given exterior boundary.Polygon
GeometryFactory. createPolygon(CoordinateSequence shell)
Constructs aPolygon
with the given exterior boundary.Polygon
GeometryFactory. createPolygon(LinearRing shell)
Constructs aPolygon
with the given exterior boundary.Polygon
GeometryFactory. createPolygon(LinearRing shell, LinearRing[] holes)
Constructs aPolygon
with the given exterior boundary and interior boundaries.static Polygon[]
GeometryFactory. toPolygonArray(java.util.Collection polygons)
Converts theList
to an array.Methods in org.locationtech.jts.geom with parameters of type Polygon Modifier and Type Method Description MultiPolygon
GeometryFactory. 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 Polygon Constructor Description MultiPolygon(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 Polygon Modifier and Type Method Description private Polygon
GeometryEditor. editPolygon(Polygon polygon, GeometryEditor.GeometryEditorOperation operation)
Methods in org.locationtech.jts.geom.util with parameters of type Polygon Modifier and Type Method Description private 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 Polygon Modifier and Type Method Description Polygon
EdgeRing. toPolygon(GeometryFactory geometryFactory)
Methods in org.locationtech.jts.geomgraph with parameters of type Polygon Modifier and Type Method Description private void
GeometryGraph. addPolygon(Polygon p)
-
Uses of Polygon in org.locationtech.jts.io
Methods in org.locationtech.jts.io that return Polygon Modifier and Type Method Description private 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 Polygon Modifier and Type Method Description private void
WKTWriter. appendPolygonTaggedText(Polygon polygon, int level, java.io.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, java.io.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 Polygon Modifier and Type Method Description private java.util.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 Polygon Modifier and Type Method Description private void
GMLWriter. writePolygon(Polygon p, java.io.Writer writer, int level)
-
Uses of Polygon in org.locationtech.jts.io.kml
Methods in org.locationtech.jts.io.kml with parameters of type Polygon Modifier and Type Method Description private void
KMLWriter. writePolygon(Polygon p, java.lang.String attributes, int level, java.lang.StringBuffer buf)
-
Uses of Polygon in org.locationtech.jts.operation.buffer
Methods in org.locationtech.jts.operation.buffer with parameters of type Polygon Modifier and Type Method Description private void
OffsetCurveSetBuilder. addPolygon(Polygon p)
-
Uses of Polygon in org.locationtech.jts.operation.buffer.validate
Methods in org.locationtech.jts.operation.buffer.validate with parameters of type Polygon Modifier and Type Method Description static 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 Polygon Modifier and Type Method Description private 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 Polygon Modifier and Type Field Description private Polygon
PlanarPolygon3D. poly
Methods in org.locationtech.jts.operation.distance3d that return Polygon Modifier and Type Method Description Polygon
PlanarPolygon3D. getPolygon()
Methods in org.locationtech.jts.operation.distance3d with parameters of type Polygon Modifier and Type Method 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.Constructors in org.locationtech.jts.operation.distance3d with parameters of type Polygon Constructor Description PlanarPolygon3D(Polygon poly)
-
Uses of Polygon in org.locationtech.jts.operation.polygonize
Methods in org.locationtech.jts.operation.polygonize that return Polygon Modifier and Type Method Description Polygon
EdgeRing. 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 Polygon Modifier and Type Field Description private Polygon
RectangleIntersects. rectangle
Methods in org.locationtech.jts.operation.predicate with parameters of type Polygon Modifier and Type Method 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.Constructors in org.locationtech.jts.operation.predicate with parameters of type Polygon Constructor 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 -
Uses of Polygon in org.locationtech.jts.operation.valid
Methods in org.locationtech.jts.operation.valid with parameters of type Polygon Modifier and Type Method 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)
-
Uses of Polygon in org.locationtech.jts.simplify
Methods in org.locationtech.jts.simplify with parameters of type Polygon Modifier and Type Method Description protected 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 Polygon Modifier and Type Method 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. -
Uses of Polygon in org.locationtech.jts.util
Methods in org.locationtech.jts.util that return Polygon Modifier and Type Method Description Polygon
GeometricShapeFactory. createArcPolygon(double startAng, double angExtent)
Creates an elliptical arc polygon.Polygon
GeometricShapeFactory. createCircle()
Creates a circular or ellipticalPolygon
.Polygon
GeometricShapeFactory. createEllipse()
Creates an ellipticalPolygon
.Polygon
GeometricShapeFactory. createRectangle()
Creates a rectangularPolygon
.Polygon
GeometricShapeFactory. createSquircle()
Creates a squircularPolygon
.Polygon
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 Polygon Modifier and Type Method Description private Polygon
CleanDuplicatePoints. clean(Polygon poly)
Methods in org.locationtech.jtstest.clean with parameters of type Polygon Modifier and Type Method Description private Polygon
CleanDuplicatePoints. clean(Polygon poly)
-
Uses of Polygon in org.locationtech.jtstest.testbuilder
Fields in org.locationtech.jtstest.testbuilder declared as Polygon Modifier and Type Field Description (package private) Polygon
PolygonNode. poly
Constructors in org.locationtech.jtstest.testbuilder with parameters of type Polygon Constructor Description PolygonNode(Polygon poly, GeometryContext context)
-
Uses of Polygon in org.locationtech.jtstest.testbuilder.geom
Methods in org.locationtech.jtstest.testbuilder.geom that return Polygon Modifier and Type Method Description Polygon
GeometryCombiner. 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 Polygon Modifier and Type Method Description Polygon
GeometryCombiner. addHole(Polygon poly, LinearRing hole)
private void
FacetLocater. findLocations(java.util.Stack path, Polygon poly, java.util.List locations)
-
Uses of Polygon in org.locationtech.jtstest.util.io
Methods in org.locationtech.jtstest.util.io with parameters of type Polygon Modifier and Type Method Description private void
SVGWriter. appendPolygon(Polygon polygon, int level, java.io.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, java.io.Writer writer)
private void
SVGWriter. appendPolygonPolygon(Polygon polygon, int level, boolean indentFirst, java.io.Writer writer)
Converts aPolygon
to <Polygon Text> format, then appends it to the writer.
-