com.vividsolutions.jts.algorithm
public class InteriorPointArea extends java.lang.Object
Constructor and Description |
---|
InteriorPointArea(Geometry g) |
Modifier and Type | Method and Description |
---|---|
void |
addPolygon(Geometry geometry)
Finds a reasonable point at which to label a Geometry.
|
Coordinate |
centre(Envelope envelope)
Returns the centre point of the envelope.
|
Coordinate |
getInteriorPoint() |
protected LineString |
horizontalBisector(Geometry geometry) |
protected Geometry |
widestGeometry(Geometry geometry) |
public InteriorPointArea(Geometry g)
public Coordinate getInteriorPoint()
public void addPolygon(Geometry geometry)
geometry
- the geometry to analyzeprotected LineString horizontalBisector(Geometry geometry)
public Coordinate centre(Envelope envelope)
envelope
- the envelope to analyze