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.OperationMethod;
30: import org.opengis.referencing.operation.ConicProjection;
31:
32: /**
33: * Base class for conical map projections.
34: *
35: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/referencing/src/main/java/org/geotools/referencing/operation/DefaultConicProjection.java $
36: * @version $Id: DefaultConicProjection.java 20874 2006-08-07 10:00:01Z jgarnett $
37: * @author Martin Desruisseaux
38: *
39: * @since 2.1
40: *
41: * @see org.geotools.referencing.crs.DefaultProjectedCRS
42: * @see <A HREF="http://mathworld.wolfram.com/ConicProjection.html">Conic projection on MathWorld</A>
43: */
44: public class DefaultConicProjection extends DefaultProjection implements
45: ConicProjection {
46: /**
47: * Serial number for interoperability with different versions.
48: */
49: private static final long serialVersionUID = -8717453834398763963L;
50:
51: /**
52: * Constructs a new projection with the same values than the specified one, together with the
53: * specified source and target CRS. While the source conversion can be an arbitrary one, it is
54: * typically a {@linkplain DefiningConversion defining conversion}.
55: *
56: * @param conversion The defining conversion.
57: * @param sourceCRS The source CRS.
58: * @param targetCRS The target CRS.
59: * @param transform Transform from positions in the {@linkplain #getSourceCRS source CRS}
60: * to positions in the {@linkplain #getTargetCRS target CRS}.
61: */
62: public DefaultConicProjection(final Conversion conversion,
63: final CoordinateReferenceSystem sourceCRS,
64: final CoordinateReferenceSystem targetCRS,
65: final MathTransform transform) {
66: super (conversion, sourceCRS, targetCRS, transform);
67: }
68:
69: /**
70: * Constructs a projection from a set of properties. The properties given in argument
71: * follow the same rules than for the {@link AbstractCoordinateOperation} constructor.
72: *
73: * @param properties Set of properties. Should contains at least <code>"name"</code>.
74: * @param sourceCRS The source CRS, or {@code null} if not available.
75: * @param targetCRS The target CRS, or {@code null} if not available.
76: * @param transform Transform from positions in the {@linkplain #getSourceCRS source coordinate
77: * reference system} to positions in the {@linkplain #getTargetCRS target
78: * coordinate reference system}.
79: * @param method The operation method.
80: */
81: public DefaultConicProjection(final Map properties,
82: final CoordinateReferenceSystem sourceCRS,
83: final CoordinateReferenceSystem targetCRS,
84: final MathTransform transform, final OperationMethod method) {
85: super(properties, sourceCRS, targetCRS, transform, method);
86: }
87: }
|