4
* The JTS Topology Suite is a collection of Java classes that
5
* implement the fundamental operations required to validate a given
6
* geo-spatial data set to a known topological specification.
8
* Copyright (C) 2001 Vivid Solutions
10
* This library is free software; you can redistribute it and/or
11
* modify it under the terms of the GNU Lesser General Public
12
* License as published by the Free Software Foundation; either
13
* version 2.1 of the License, or (at your option) any later version.
15
* This library is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
* Lesser General Public License for more details.
20
* You should have received a copy of the GNU Lesser General Public
21
* License along with this library; if not, write to the Free Software
22
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24
* For more information, contact:
28
* 2328 Government Street
33
* www.vividsolutions.com
35
package com.vividsolutions.jts.geom;
39
* <code>Geometry</code> classes support the concept of applying a
40
* coordinate filter to every coordinate in the <code>Geometry</code>. A
41
* coordinate filter can either record information about each coordinate or
42
* change the coordinate in some way. Coordinate filters implement the
43
* interface <code>CoordinateFilter</code>. (<code>CoordinateFilter</code> is
44
* an example of the Gang-of-Four Visitor pattern). Coordinate filters can be
45
* used to implement such things as coordinate transformations, centroid and
46
* envelope computation, and many other functions.
50
public interface CoordinateFilter {
53
* Performs an operation with or on <code>coord</code>.
55
*@param coord a <code>Coordinate</code> to which the filter is applied.
57
public void filter(Coordinate coord);