com.vividsolutions.jts.operation.distance
Class ConnectedElementLocationFilter
java.lang.Objectcom.vividsolutions.jts.operation.distance.ConnectedElementLocationFilter
- GeometryFilter
public class ConnectedElementLocationFilter
extends java.lang.Object
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
GeometryLocations.
void | filter(Geometry geom)- Performs an operation with or on
geom.
|
static List | getLocations(Geometry geom)- Returns a list containing a point from each Polygon, LineString, and Point
found inside the specified geometry.
|
filter
public void filter(Geometry geom)
Performs an operation with or on geom.
- filter in interface GeometryFilter
geom - a Geometry to which the filter is applied.
getLocations
public static List getLocations(Geometry geom)
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
are
GeometryLocations.