Class ConnectedElementLocationFilter
java.lang.Object
org.locationtech.jts.operation.distance.ConnectedElementLocationFilter
- All Implemented Interfaces:
GeometryFilter
A ConnectedElementPointFilter extracts a single point
from each connected element in a Geometry
(e.g. a polygon, linestring or point)
and returns them in a list. The elements of the list are
GeometryLocation
s.
Empty geometries do not provide a location item.- Version:
- 1.7
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Performs an operation with or ongeom
.static List
getLocations
(Geometry geom) Returns a list containing a point from each Polygon, LineString, and Point found inside the specified geometry.
-
Method Details
-
getLocations
Returns a list containing a point 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. The elements of the list areGeometryLocation
s. -
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.
-