01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2004-2006, GeoTools Project Managment Committee (PMC)
05: * (C) 2004, Institut de Recherche pour le Développement
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation;
10: * version 2.1 of the License.
11: *
12: * This library is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * This package contains documentation from OpenGIS specifications.
18: * OpenGIS consortium's work is fully acknowledged here.
19: */
20: package org.geotools.referencing.operation;
21:
22: // J2SE dependencies
23: import java.util.Map;
24:
25: // OpenGIS dependencies
26: import org.opengis.referencing.crs.CoordinateReferenceSystem;
27: import org.opengis.referencing.operation.Conversion;
28: import org.opengis.referencing.operation.MathTransform;
29: import org.opengis.referencing.operation.SingleOperation;
30:
31: /**
32: * A single (not {@linkplain DefaultConcatenatedOperation concatenated}) coordinate operation.
33: *
34: * @since 2.1
35: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/referencing/src/main/java/org/geotools/referencing/operation/DefaultSingleOperation.java $
36: * @version $Id: DefaultSingleOperation.java 20874 2006-08-07 10:00:01Z jgarnett $
37: * @author Martin Desruisseaux
38: */
39: public class DefaultSingleOperation extends AbstractCoordinateOperation
40: implements SingleOperation {
41: /**
42: * Serial number for interoperability with different versions.
43: */
44: private static final long serialVersionUID = 672935231344137185L;
45:
46: /**
47: * Constructs a new single operation with the same values than the specified defining
48: * conversion, together with the specified source and target CRS. This constructor
49: * is used by {@link DefaultConversion} only.
50: */
51: DefaultSingleOperation(final Conversion definition,
52: final CoordinateReferenceSystem sourceCRS,
53: final CoordinateReferenceSystem targetCRS,
54: final MathTransform transform) {
55: super (definition, sourceCRS, targetCRS, transform);
56: }
57:
58: /**
59: * Constructs a single operation from a set of properties. The properties given in argument
60: * follow the same rules than for the {@link AbstractCoordinateOperation} constructor.
61: *
62: * @param sourceCRS The source CRS.
63: * @param targetCRS The target CRS.
64: * @param transform Transform from positions in the {@linkplain #getSourceCRS source CRS}
65: * to positions in the {@linkplain #getTargetCRS target CRS}.
66: */
67: public DefaultSingleOperation(final Map properties,
68: final CoordinateReferenceSystem sourceCRS,
69: final CoordinateReferenceSystem targetCRS,
70: final MathTransform transform) {
71: super(properties, sourceCRS, targetCRS, transform);
72: }
73: }
|