| org.geotools.referencing.AbstractReferenceSystem org.geotools.referencing.crs.AbstractCRS org.geotools.referencing.crs.AbstractSingleCRS org.geotools.referencing.crs.AbstractDerivedCRS org.geotools.referencing.crs.DefaultProjectedCRS
DefaultProjectedCRS | public class DefaultProjectedCRS extends AbstractDerivedCRS implements ProjectedCRS(Code) | | A 2D coordinate reference system used to approximate the shape of the earth on a planar surface.
It is done in such a way that the distortion that is inherent to the approximation is carefully
controlled and known. Distortion correction is commonly applied to calculated bearings and
distances to produce values that are a close match to actual field values.
Used with CS type(s) |
CartesianCS Cartesian |
since: 2.1 version: $Id: DefaultProjectedCRS.java 29128 2008-02-07 10:56:41Z desruisseaux $ author: Martin Desruisseaux |
Constructor Summary | |
public | DefaultProjectedCRS(ProjectedCRS crs) Constructs a new projected CRS with the same values than the specified one.
This copy constructor provides a way to wrap an arbitrary implementation into a
Geotools one or a user-defined one (as a subclass), usually in order to leverage
some implementation-specific API. | public | DefaultProjectedCRS(String name, OperationMethod method, GeographicCRS base, MathTransform baseToDerived, CartesianCS derivedCS) Constructs a projected CRS from a name.
Parameters: name - The name. Parameters: method - A description of the . Parameters: base - Coordinate reference system to base the derived CRS on. Parameters: baseToDerived - The transform from the base CRS to returned CRS. Parameters: derivedCS - The coordinate system for the derived CRS. | public | DefaultProjectedCRS(Map properties, OperationMethod method, GeographicCRS base, MathTransform baseToDerived, CartesianCS derivedCS) Constructs a projected CRS from a set of properties. | public | DefaultProjectedCRS(Map properties, Conversion conversionFromBase, GeographicCRS base, MathTransform baseToDerived, CartesianCS derivedCS) Constructs a projected CRS from a
.
The properties are given unchanged to the
.
Parameters: properties - Name and other properties to give to the new projected CRS object. Parameters: conversionFromBase - The . Parameters: base - Coordinate reference system to base the projected CRS on. Parameters: baseToDerived - The transform from the base CRS to returned CRS. Parameters: derivedCS - The coordinate system for the projected CRS. |
Method Summary | |
public static Matrix | createLinearConversion(ProjectedCRS sourceCRS, ProjectedCRS targetCRS, double errorTolerance) Returns a conversion from a source to target projected CRS, if this conversion
is representable as an affine transform. | protected String | formatWKT(Formatter formatter) Format the inner part of a
Well
Known Text (WKT) element.
Parameters: formatter - The formatter to use. | public int | hashCode() Returns a hash value for this projected CRS.
The hash code value. |
DefaultProjectedCRS | public DefaultProjectedCRS(ProjectedCRS crs)(Code) | | Constructs a new projected CRS with the same values than the specified one.
This copy constructor provides a way to wrap an arbitrary implementation into a
Geotools one or a user-defined one (as a subclass), usually in order to leverage
some implementation-specific API. This constructor performs a shallow copy,
i.e. the properties are not cloned.
since: 2.2 |
DefaultProjectedCRS | public DefaultProjectedCRS(String name, OperationMethod method, GeographicCRS base, MathTransform baseToDerived, CartesianCS derivedCS) throws MismatchedDimensionException(Code) | | Constructs a projected CRS from a name.
Parameters: name - The name. Parameters: method - A description of the . Parameters: base - Coordinate reference system to base the derived CRS on. Parameters: baseToDerived - The transform from the base CRS to returned CRS. Parameters: derivedCS - The coordinate system for the derived CRS. The numberof axes must match the target dimension of the transform baseToDerived . throws: MismatchedDimensionException - if the source and target dimension of baseToDeviced don't match the dimension of base and derivedCS respectively.DefiningConversion |
DefaultProjectedCRS | public DefaultProjectedCRS(Map properties, OperationMethod method, GeographicCRS base, MathTransform baseToDerived, CartesianCS derivedCS) throws MismatchedDimensionException(Code) | | Constructs a projected CRS from a set of properties. The properties are given unchanged
to the
.
Parameters: properties - Name and other properties to give to the new derived CRS object and tothe underlying . Parameters: method - A description of the . Parameters: base - Coordinate reference system to base the derived CRS on. Parameters: baseToDerived - The transform from the base CRS to returned CRS. Parameters: derivedCS - The coordinate system for the derived CRS. The numberof axes must match the target dimension of the transform baseToDerived . throws: MismatchedDimensionException - if the source and target dimension of baseToDeviced don't match the dimension of base and derivedCS respectively.DefiningConversion |
DefaultProjectedCRS | public DefaultProjectedCRS(Map properties, Conversion conversionFromBase, GeographicCRS base, MathTransform baseToDerived, CartesianCS derivedCS) throws MismatchedDimensionException(Code) | | Constructs a projected CRS from a
.
The properties are given unchanged to the
.
Parameters: properties - Name and other properties to give to the new projected CRS object. Parameters: conversionFromBase - The . Parameters: base - Coordinate reference system to base the projected CRS on. Parameters: baseToDerived - The transform from the base CRS to returned CRS. Parameters: derivedCS - The coordinate system for the projected CRS. The numberof axes must match the target dimension of the transform baseToDerived . throws: MismatchedDimensionException - if the source and target dimension of baseToDerived don't match the dimension of base and derivedCS respectively. |
createLinearConversion | public static Matrix createLinearConversion(ProjectedCRS sourceCRS, ProjectedCRS targetCRS, double errorTolerance)(Code) | | Returns a conversion from a source to target projected CRS, if this conversion
is representable as an affine transform. More specifically, if all projection
parameters are identical except the following ones:
-
org.geotools.referencing.operation.projection.MapProjection.AbstractProvider.SCALE_FACTOR scale_factor
-
org.geotools.referencing.operation.projection.MapProjection.AbstractProvider.SEMI_MAJOR semi_major
-
org.geotools.referencing.operation.projection.MapProjection.AbstractProvider.SEMI_MINOR semi_minor
-
org.geotools.referencing.operation.projection.MapProjection.AbstractProvider.FALSE_EASTING false_easting
-
org.geotools.referencing.operation.projection.MapProjection.AbstractProvider.FALSE_NORTHING false_northing
Then the conversion between two projected CRS can sometime be represented as a linear
conversion. For example if only false easting/northing differ, then the coordinate conversion
is simply a translation. If no linear conversion has been found between the two CRS, then
this method returns
null .
Parameters: sourceCRS - The source coordinate reference system. Parameters: targetCRS - The target coordinate reference system. Parameters: errorTolerance - Relative error tolerance for considering two parameter values asequal. This is usually a small number like 1E-10 . The conversion from sourceCRS to targetCRS as anaffine transform, or null if no linear transform has been found. DefaultCoordinateOperationFactory |
formatWKT | protected String formatWKT(Formatter formatter)(Code) | | Format the inner part of a
Well
Known Text (WKT) element.
Parameters: formatter - The formatter to use. The name of the WKT element type, which is "PROJCS" . |
hashCode | public int hashCode()(Code) | | Returns a hash value for this projected CRS.
The hash code value. This value doesn't need to be the samein past or future versions of this class. |
Fields inherited from org.geotools.referencing.crs.AbstractSingleCRS | final protected Datum datum(Code)(Java Doc)
|
Fields inherited from org.geotools.referencing.crs.AbstractCRS | final protected CoordinateSystem coordinateSystem(Code)(Java Doc)
|
|
|