Class ConnectedElementPointFilter
java.lang.Object
org.locationtech.jts.operation.distance.ConnectedElementPointFilter
- All Implemented Interfaces:
GeometryFilter
Extracts a single point
from each connected element in a Geometry
(e.g. a polygon, linestring or point)
and returns them in a list
- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Performs an operation with or ongeom
.static List
getCoordinates
(Geometry geom) Returns a list containing a Coordinate from each Polygon, LineString, and Point found inside the specified geometry.
-
Field Details
-
pts
-
-
Constructor Details
-
ConnectedElementPointFilter
ConnectedElementPointFilter(List pts)
-
-
Method Details
-
getCoordinates
Returns a list containing a Coordinate from each Polygon, LineString, and Point found inside the specified geometry. Thus, if the specified geometry is not a GeometryCollection, an empty list will be returned. -
filter
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.
-