|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattableObject
AbstractIdentifiedObject
AbstractReferenceSystem
AbstractCRS
AbstractSingleCRS
AbstractDerivedCRS
DefaultProjectedCRS
@Immutable public class DefaultProjectedCRS
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) |
|---|
Cartesian
|
| referencing/geotk-referencing (download) | View source code for this class |
| Field Summary |
|---|
| Fields inherited from class AbstractDerivedCRS |
|---|
baseCRS, CONVERSION_TYPE_KEY, conversionFromBase |
| Fields inherited from class FormattableObject |
|---|
EPSG, GEOTIFF, INTERNAL, OGC, SINGLE_LINE |
| Fields inherited from interface ReferenceSystem |
|---|
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY |
| Fields inherited from interface IdentifiedObject |
|---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Constructor Summary | |
|---|---|
DefaultProjectedCRS(Map<String,?> properties,
Conversion conversionFromBase,
GeographicCRS base,
MathTransform baseToDerived,
CartesianCS derivedCS)
Constructs a projected CRS from a defining conversion. |
|
DefaultProjectedCRS(Map<String,?> properties,
GeographicCRS base,
MathTransform baseToDerived,
CartesianCS derivedCS)
Constructs a projected CRS from a set of properties. |
|
DefaultProjectedCRS(ProjectedCRS crs)
Constructs a new projected CRS with the same values than the specified one. |
|
DefaultProjectedCRS(String name,
GeographicCRS base,
MathTransform baseToDerived,
CartesianCS derivedCS)
Constructs a projected CRS from a name. |
|
| Method Summary | |
|---|---|
static DefaultProjectedCRS |
castOrCopy(ProjectedCRS object)
Returns a Geotk CRS implementation with the same values than the given arbitrary implementation. |
String |
formatWKT(Formatter formatter)
Formats the inner part of a Well Known Text (WKT) element. |
GeographicCRS |
getBaseCRS()
Returns the base coordinate reference system, which must be geographic. |
Projection |
getConversionFromBase()
Returns the map projection from the base CRS to this CRS. |
CartesianCS |
getCoordinateSystem()
Returns the coordinate system. |
GeodeticDatum |
getDatum()
Returns the datum. |
static DefaultProjectedCRS |
wrap(ProjectedCRS object)
Deprecated. Renamed castOrCopy. |
| Methods inherited from class AbstractDerivedCRS |
|---|
computeHashCode, equals |
| Methods inherited from class AbstractSingleCRS |
|---|
getAxis, getDimension |
| Methods inherited from class AbstractCRS |
|---|
distance |
| Methods inherited from class AbstractReferenceSystem |
|---|
getDomainOfValidity, getScope |
| Methods inherited from class AbstractIdentifiedObject |
|---|
equals, getAlias, getIdentifier, getIdentifiers, getName, getName, getRemarks, hashCode, nameMatches |
| Methods inherited from class FormattableObject |
|---|
getDefaultIndentation, print, setDefaultIndentation, toString, toWKT, toWKT, toWKT |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ReferenceSystem |
|---|
getDomainOfValidity, getScope |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Constructor Detail |
|---|
public DefaultProjectedCRS(ProjectedCRS crs)
crs - The coordinate reference system to copy.
public DefaultProjectedCRS(String name,
GeographicCRS base,
MathTransform baseToDerived,
CartesianCS derivedCS)
throws MismatchedDimensionException
name - The name.base - Coordinate reference system to base the derived CRS on.baseToDerived - The transform from the base CRS to returned CRS.derivedCS - The coordinate system for the derived CRS. The number of axes
must match the target dimension of the transform baseToDerived.
MismatchedDimensionException - if the source and target dimension of
baseToDeviced don't match the dimension of base
and derivedCS respectively.
public DefaultProjectedCRS(Map<String,?> properties,
GeographicCRS base,
MathTransform baseToDerived,
CartesianCS derivedCS)
throws MismatchedDimensionException
The properties are given unchanged to the super-class constructor.
properties - Name and other properties to give to the new derived CRS object and to
the underlying projection.base - Coordinate reference system to base the derived CRS on.baseToDerived - The transform from the base CRS to returned CRS.derivedCS - The coordinate system for the derived CRS. The number of axes
must match the target dimension of the transform baseToDerived.
MismatchedDimensionException - if the source and target dimension of
baseToDeviced don't match the dimension of base
and derivedCS respectively.
public DefaultProjectedCRS(Map<String,?> properties,
Conversion conversionFromBase,
GeographicCRS base,
MathTransform baseToDerived,
CartesianCS derivedCS)
throws MismatchedDimensionException
properties - Name and other properties to give to the new projected CRS object.conversionFromBase - The defining conversion.base - Coordinate reference system to base the projected CRS on.baseToDerived - The transform from the base CRS to returned CRS.derivedCS - The coordinate system for the projected CRS. The number of axes
must match the target dimension of the transform baseToDerived.
MismatchedDimensionException - if the source and target dimension of
baseToDerived don't match the dimension of base
and derivedCS respectively.| Method Detail |
|---|
public static DefaultProjectedCRS castOrCopy(ProjectedCRS object)
null, then this method returns null.
Otherwise if the given object is already a Geotk implementation, then the given object is
returned unchanged. Otherwise a new Geotk implementation is created and initialized to the
attribute values of the given object.
object - The object to get as a Geotk implementation, or null if none.
null if the argument was null.@Deprecated public static DefaultProjectedCRS wrap(ProjectedCRS object)
castOrCopy.
object - The object to get as a Geotk implementation, or null if none.
public CartesianCS getCoordinateSystem()
getCoordinateSystem in interface CoordinateReferenceSystemgetCoordinateSystem in interface ProjectedCRSgetCoordinateSystem in interface SingleCRSgetCoordinateSystem in class AbstractCRSpublic GeodeticDatum getDatum()
getDatum in interface ProjectedCRSgetDatum in interface SingleCRSgetDatum in class AbstractSingleCRSpublic GeographicCRS getBaseCRS()
getBaseCRS in interface GeneralDerivedCRSgetBaseCRS in interface ProjectedCRSgetBaseCRS in class AbstractDerivedCRSpublic Projection getConversionFromBase()
getConversionFromBase in interface GeneralDerivedCRSgetConversionFromBase in interface ProjectedCRSgetConversionFromBase in class AbstractDerivedCRSpublic String formatWKT(Formatter formatter)
formatWKT in interface FormattableformatWKT in class AbstractDerivedCRSformatter - The formatter to use.
"PROJCS".FormattableObject.toWKT(),
FormattableObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||