Class ComponentCoordinateExtracter

Hierarchy: Object , ComponentCoordinateExtracter
All Implemented Interfaces: GeometryComponentFilter
public class ComponentCoordinateExtracter
implements GeometryComponentFilter
Extracts a representative Coordinate from each connected component of a Geometry.

Other

  • version: 1.9
public ComponentCoordinateExtracter(List coords)
Constructs a LineExtracterFilter with a list in which to store LineStrings found.
public static List getCoordinates(Geometry geom)
Extracts a representative Coordinate from each connected component in a geometry.

If more than one geometry is to be processed, it is more efficient to create a single ComponentCoordinateExtracter instance and pass it to each geometry.

Parameters:
geom - geom the Geometry from which to extract
Returns:
a list of representative Coordinates
public void filter(Geometry geom)