public class InteriorPoint extends Object
Geometry
.
An interior point is guaranteed to lie in the interior of the Geometry,
if it possible to calculate such a point exactly.
Otherwise, the point may lie on the boundary of the geometry.
For collections the interior point is computed for the collection of
non-empty elements of highest dimension.
The interior point of an empty geometry is null
.
Centroid
,
MaximumInscribedCircle
,
LargestEmptyCircle
Constructor and Description |
---|
InteriorPoint() |
Modifier and Type | Method and Description |
---|---|
static Coordinate |
getInteriorPoint(Geometry geom)
Computes a location of an interior point in a
Geometry . |
public static Coordinate getInteriorPoint(Geometry geom)
Geometry
.
Handles all geometry types.geom
- a geometry in which to find an interior pointnull
if the input is emptyCopyright © 2022. All rights reserved.