01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2004-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.geometry.jts;
17:
18: // JTS dependencies
19: import com.vividsolutions.jts.geom.CoordinateSequence;
20:
21: // OpenGIS dependencies
22: import org.opengis.referencing.operation.MathTransform;
23: import org.opengis.referencing.operation.TransformException;
24:
25: /**
26: * Interface that should be implemented by classes able to apply the provided
27: * {@linkplain MathTransform transformation} to a
28: * {@linkplain CoordinateSequence coordinate sequence}.
29: *
30: * @since 2.1
31: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/api/src/main/java/org/geotools/geometry/jts/CoordinateSequenceTransformer.java $
32: * @version $Id: CoordinateSequenceTransformer.java 26186 2007-07-10 02:18:59Z jdeolive $
33: * @author Andrea Aime
34: */
35: public interface CoordinateSequenceTransformer {
36: /**
37: * Returns a transformed coordinate sequence.
38: *
39: * @param sequence The sequence to transform.
40: * @param transform The transformation to apply.
41: * @throws TransformException if at least one coordinate can't be transformed.
42: */
43: public CoordinateSequence transform(CoordinateSequence sequence,
44: MathTransform transform) throws TransformException;
45: }
|