| |
|
| java.lang.Object com.vividsolutions.jump.geom.InteriorPointFinder
InteriorPointFinder | public class InteriorPointFinder (Code) | | Find a reasonable point at which to label a Geometry.
Algorithm is:
- Find the intersections between the geometry and a line halfway
down the envelope
- Pick the midpoint of the largest intersection (the intersections
will be lines and points)
|
Method Summary | |
public Coordinate | centre(Envelope envelope) Returns the centre-of-mass of the envelope. | protected Geometry | envelopeMiddle(Geometry geometry) | public Coordinate | findPoint(Geometry geometry) Finds a reasonable point at which to label a Geometry. | protected Geometry | widestGeometry(Geometry geometry) |
InteriorPointFinder | public InteriorPointFinder()(Code) | | |
centre | public Coordinate centre(Envelope envelope)(Code) | | Returns the centre-of-mass of the envelope.
Parameters: envelope - the envelope to analyze the centre of the envelope |
envelopeMiddle | protected Geometry envelopeMiddle(Geometry geometry)(Code) | | |
findPoint | public Coordinate findPoint(Geometry geometry)(Code) | | Finds a reasonable point at which to label a Geometry.
Parameters: geometry - the geometry to analyze the midpoint of the largest intersection between the geometry anda line halfway down its envelope |
widestGeometry | protected Geometry widestGeometry(Geometry geometry)(Code) | | |
|
|
|