CoordinateFilter class abstract

An interface for classes which use the values of the coordinates in a {@link Geometry}. Coordinate filters can be used to implement centroid and envelope computation, and many other functions.

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

Note: it is not recommended to use these filters to mutate the coordinates. There is no guarantee that the coordinate is the actual object stored in the source geometry. In particular, modified values may not be preserved if the source Geometry uses a non-default {@link CoordinateSequence}. If in-place mutation is required, use {@link CoordinateSequenceFilter}.

@see Geometry#apply(CoordinateFilter) @see CoordinateSequenceFilter

@version 1.7

Implementers

Constructors

CoordinateFilter()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

filter(Coordinate? coordinate) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited