Interface GeometryComponentFilter

All Known Implementing Classes:
ComponentCoordinateExtracter, LinearComponentExtracter

public interface GeometryComponentFilter
Geometry classes support the concept of applying a GeometryComponentFilter filter to a geometry. The filter is applied to every component of a geometry, as well as to the geometry itself. (For instance, in a Polygon, all the LinearRing components for the shell and holes are visited, as well as the polygon itself. In order to process only atomic components, the filter(org.locationtech.jts.geom.Geometry) method code must explicitly handle only LineStrings, LinearRings and Points.

A GeometryComponentFilter filter can either record information about the Geometry or change the Geometry in some way.

GeometryComponentFilter is an example of the Gang-of-Four Visitor pattern.

Version:
1.7
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Performs an operation with or on a geometry component.
  • Method Details

    • filter

      void filter(Geometry geom)
      Performs an operation with or on a geometry component.
      Parameters:
      geom - a component of the geometry to which the filter is applied.