GEOS
3.8.0dev

Geometry classes support the concept of applying a coordinate filter to every coordinate in the Geometry. More...
#include <CoordinateFilter.h>
Public Member Functions  
virtual void  filter_rw (Coordinate *) const 
Performs an operation on coord . More...  
virtual void  filter_ro (const Coordinate *) 
Performs an operation with coord . More...  
Geometry classes support the concept of applying a coordinate filter to every coordinate in the Geometry.
A coordinate filter can either record information about each coordinate or change the coordinate in some way. Coordinate filters implement the interface CoordinateFilter
. (CoordinateFilter
is an example of the GangofFour Visitor pattern). Coordinate filters can be used to implement such things as coordinate transformations, centroid and envelope computation, and many other functions.
TODO: provide geom::CoordinateInspector and geom::CoordinateMutator instead of having the two versions of filter_rw and filter_ro

inlinevirtual 
Performs an operation with coord
.
param coord
a Coordinate to which the filter is applied.
Reimplemented in geos::util::CoordinateArrayFilter.

inlinevirtual 
Performs an operation on coord
.
param coord
a Coordinate to which the filter is applied.