applyCSF method

void applyCSF(
  1. CoordinateSequenceFilter filter
)
override

Performs an operation on the coordinates in this Geometry's {@link CoordinateSequence}s. If the filter reports that a coordinate value has been changed, {@link #geometryChanged} will be called automatically.

@param filter the filter to apply

Implementation

void applyCSF(CoordinateSequenceFilter filter) {
  if (points.size() == 0) return;
  for (int i = 0; i < points.size(); i++) {
    filter.filter(points, i);
    if (filter.isDone()) break;
  }
  if (filter.isGeometryChanged()) geometryChanged();
}