filter method

void filter(
  1. Geometry geom
)
override

Performs an operation with or on geom.

@param geom a Geometry to which the filter is applied.

Implementation

void filter(Geometry geom) {
  if (geom is Point || geom is LineString || geom is Polygon)
    locations.add(new GeometryLocation(geom, 0, geom.getCoordinate()!));
}