| org.geotools.referencing.AbstractIdentifiedObject org.geotools.referencing.AbstractReferenceSystem org.geotools.referencing.crs.AbstractCRS org.geotools.referencing.crs.AbstractSingleCRS org.geotools.referencing.crs.AbstractDerivedCRS
All known Subclasses: org.geotools.referencing.crs.DefaultProjectedCRS, org.geotools.referencing.crs.DefaultDerivedCRS,
AbstractDerivedCRS | public class AbstractDerivedCRS extends AbstractSingleCRS implements GeneralDerivedCRS(Code) | | A coordinate reference system that is defined by its coordinate
from another coordinate reference system
(not by a
).
This class is conceptually abstract, even if it is technically possible to
instantiate it. Typical applications should create instances of the most specific subclass with
Default prefix instead. An exception to this rule may occurs when it is not possible to
identify the exact type.
since: 2.1 version: $Id: AbstractDerivedCRS.java 28031 2007-11-23 21:24:22Z desruisseaux $ author: Martin Desruisseaux |
Field Summary | |
final public static String | CONVERSION_TYPE_KEY Key for the
property to be given to the constructor. | final public static ThreadLocal | _COMPARING A lock for avoiding never-ending recursivity in the
equals method. | final protected CoordinateReferenceSystem | baseCRS The base coordinate reference system. | final protected Conversion | conversionFromBase The conversion from the
to this CRS. |
Constructor Summary | |
protected | AbstractDerivedCRS(GeneralDerivedCRS crs) Constructs a new derived 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. | protected | AbstractDerivedCRS(Map properties, Conversion conversionFromBase, CoordinateReferenceSystem base, MathTransform baseToDerived, CoordinateSystem derivedCS) Constructs a derived CRS from a
.
The properties are given unchanged to the
.
Parameters: properties - Name and other properties to give to the new derived CRS object. Parameters: conversionFromBase - 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. | protected | AbstractDerivedCRS(Map properties, OperationMethod method, CoordinateReferenceSystem base, MathTransform baseToDerived, CoordinateSystem derivedCS) Constructs a derived CRS from a set of properties. |
Method Summary | |
public boolean | equals(AbstractIdentifiedObject object, boolean compareMetadata) Compare this coordinate reference system with the specified object for equality.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. | protected String | formatWKT(Formatter formatter) Format the inner part of a
Well
Known Text (WKT) element.
Parameters: formatter - The formatter to use. | public CoordinateReferenceSystem | getBaseCRS() Returns the base coordinate reference system. | public Conversion | getConversionFromBase() Returns the conversion from the
to this CRS. | public int | hashCode() Returns a hash value for this derived CRS.
The hash code value. |
CONVERSION_TYPE_KEY | final public static String CONVERSION_TYPE_KEY(Code) | | Key for the
property to be given to the constructor. The value should
be one of
.class ,
.class or
.class .
This is a Geotools specific property used as a hint for creating a
of proper type from a
. In
many cases, this hint is not needed since Geotools is often capable to infer it. This hint is
used mostly by advanced factories like the
one.
See Also: DefaultConversion.create since: 2.4 |
baseCRS | final protected CoordinateReferenceSystem baseCRS(Code) | | The base coordinate reference system.
|
conversionFromBase | final protected Conversion conversionFromBase(Code) | | The conversion from the
to this CRS.
|
AbstractDerivedCRS | protected AbstractDerivedCRS(GeneralDerivedCRS crs)(Code) | | Constructs a new derived 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 |
AbstractDerivedCRS | protected AbstractDerivedCRS(Map properties, Conversion conversionFromBase, CoordinateReferenceSystem base, MathTransform baseToDerived, CoordinateSystem derivedCS) throws MismatchedDimensionException(Code) | | Constructs a derived CRS from a
.
The properties are given unchanged to the
.
Parameters: properties - Name and other properties to give to the new derived CRS object. Parameters: conversionFromBase - 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 baseToDerived don't match the dimension of base and derivedCS respectively. |
AbstractDerivedCRS | protected AbstractDerivedCRS(Map properties, OperationMethod method, CoordinateReferenceSystem base, MathTransform baseToDerived, CoordinateSystem derivedCS) throws MismatchedDimensionException(Code) | | Constructs a derived CRS from a set of properties. The properties are given unchanged to
the
.
The following optional properties are also understood:
Property name |
Value type |
Value given to |
"conversion.name" |
String |
.getName() |
Additional properties for the
DefaultConversion object to be created can be
specified with the "conversion." prefix added in front of property names
(example: "conversion.remarks" ). The same applies for operation method,
using the "method." prefix.
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 baseToDerived don't match the dimension of base and derivedCS respectively.DefiningConversion |
equals | public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code) | | Compare this coordinate reference system with the specified object for equality.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. true if both objects are equal. |
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 "FITTED_CS" . |
getBaseCRS | public CoordinateReferenceSystem getBaseCRS()(Code) | | Returns the base coordinate reference system.
The base coordinate reference system. |
getConversionFromBase | public Conversion getConversionFromBase()(Code) | | Returns the conversion from the
to this CRS.
The conversion to this CRS. |
hashCode | public int hashCode()(Code) | | Returns a hash value for this derived 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)
|
Methods inherited from org.geotools.referencing.AbstractIdentifiedObject | protected static Set asSet(Object[] array)(Code)(Java Doc) protected static void ensureAngularUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureLinearUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object[] array, int index) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureTimeUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) final public boolean equals(Object object)(Code)(Java Doc) public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject object1, IdentifiedObject object2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject[] array1, IdentifiedObject[] array2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(Collection collection1, Collection collection2, boolean compareMetadata)(Code)(Java Doc) public Collection getAlias()(Code)(Java Doc) public ReferenceIdentifier getIdentifier(Citation authority)(Code)(Java Doc) public static ReferenceIdentifier getIdentifier(IdentifiedObject info, Citation authority)(Code)(Java Doc) public Set getIdentifiers()(Code)(Java Doc) public ReferenceIdentifier getName()(Code)(Java Doc) public String getName(Citation authority)(Code)(Java Doc) public static String getName(IdentifiedObject info, Citation authority)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info, Citation authority)(Code)(Java Doc) public InternationalString getRemarks()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean nameMatches(String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject object, String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject o1, IdentifiedObject o2)(Code)(Java Doc)
|
|
|