Class ConnectedElementLocationFilter

java.lang.Object
org.locationtech.jts.operation.distance.ConnectedElementLocationFilter
All Implemented Interfaces:
GeometryFilter

public class ConnectedElementLocationFilter extends Object implements 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 GeometryLocations.
Version:
1.7
  • Field Details

    • locations

      private List locations
  • Constructor Details

    • ConnectedElementLocationFilter

      ConnectedElementLocationFilter(List locations)
  • Method Details

    • 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.
    • filter

      public void filter(Geometry geom)
      Description copied from interface: GeometryFilter
      Performs an operation with or on geom.
      Specified by:
      filter in interface GeometryFilter
      Parameters:
      geom - a Geometry to which the filter is applied.