Class PointExtracter

Hierarchy: Object , PointExtracter
All Implemented Interfaces: GeometryFilter
public class PointExtracter
implements GeometryFilter
Extracts all the 0-dimensional ( Point) components from a Geometry.
See also:
GeometryExtracter

Other

  • version: 1.7
public PointExtracter(List pts)
Constructs a PointExtracterFilter with a list in which to store Points found.
public static List getPoints(Geometry geom, List list)
Extracts the Point elements from a single Geometry and adds them to the provided List.
Parameters:
geom - geom the geometry from which to extract
list - list the list to add the extracted elements to
public static List getPoints(Geometry geom)
Extracts the Point elements from a single Geometry and returns them in a List.
Parameters:
geom - geom the geometry from which to extract
public void filter(Geometry geom)