Package org.locationtech.jts.geom.util
Class PointExtracter
- java.lang.Object
-
- org.locationtech.jts.geom.util.PointExtracter
-
- All Implemented Interfaces:
GeometryFilter
public class PointExtracter extends Object implements GeometryFilter
- Version:
- 1.7
- See Also:
GeometryExtracter
-
-
Constructor Summary
Constructors Constructor Description PointExtracter(List pts)
Constructs a PointExtracterFilter with a list in which to store Points found.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(Geometry geom)
Performs an operation with or ongeom
.static List
getPoints(Geometry geom)
static List
getPoints(Geometry geom, List list)
-
-
-
Constructor Detail
-
PointExtracter
public PointExtracter(List pts)
Constructs a PointExtracterFilter with a list in which to store Points found.
-
-
Method Detail
-
getPoints
public static List getPoints(Geometry geom, List list)
- Parameters:
geom
- the geometry from which to extractlist
- the list to add the extracted elements to
-
getPoints
public static List getPoints(Geometry geom)
- Parameters:
geom
- the geometry from which to extract
-
filter
public void filter(Geometry geom)
Description copied from interface:GeometryFilter
Performs an operation with or ongeom
.- Specified by:
filter
in interfaceGeometryFilter
- Parameters:
geom
- aGeometry
to which the filter is applied.
-
-