org.geotools.referencing
Class AbstractReferenceSystem

java.lang.Object
  extended byorg.geotools.referencing.wkt.Formattable
      extended byorg.geotools.referencing.AbstractIdentifiedObject
          extended byorg.geotools.referencing.AbstractReferenceSystem
All Implemented Interfaces:
org.opengis.referencing.IdentifiedObject, org.opengis.referencing.ReferenceSystem, java.io.Serializable
Direct Known Subclasses:
AbstractCRS, ReferenceSystem

public class AbstractReferenceSystem
extends AbstractIdentifiedObject
implements org.opengis.referencing.ReferenceSystem

Description of a spatial and temporal reference system used by a dataset.

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 prefix instead. An exception to this rule may occurs when it is not possible to identify the exact type.

Version:
$Id: AbstractReferenceSystem.java 14282 2005-06-12 07:18:12Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Serialized Form

Field Summary
static java.lang.String SCOPE_PROPERTY
          Deprecated. Replaced by ReferenceSystem.SCOPE_KEY.
static java.lang.String VALID_AREA_PROPERTY
          Deprecated. Replaced by ReferenceSystem.VALID_AREA_KEY.
 
Fields inherited from class org.geotools.referencing.AbstractIdentifiedObject
ALIAS_PROPERTY, EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, IDENTIFIERS_PROPERTY, NAME_COMPARATOR, NAME_PROPERTY, REMARKS_COMPARATOR, REMARKS_PROPERTY
 
Fields inherited from interface org.opengis.referencing.ReferenceSystem
SCOPE_KEY, VALID_AREA_KEY
 
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
AbstractReferenceSystem(java.util.Map properties)
          Constructs a reference system from a set of properties.
 
Method Summary
 boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)
          Compare this reference system with the specified object for equality.
 org.opengis.util.InternationalString getScope()
          Description of domain of usage, or limitations of usage, for which this (coordinate) reference system object is valid.
 org.opengis.metadata.extent.Extent getValidArea()
          Area for which the (coordinate) reference system is valid.
 
Methods inherited from class org.geotools.referencing.AbstractIdentifiedObject
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifiers, getName, getProperties, getRemarks, hashCode, nameMatches, nameMatches
 
Methods inherited from class org.geotools.referencing.wkt.Formattable
formatWKT, toString, toWKT, toWKT, toWKT
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.referencing.IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
 

Field Detail

VALID_AREA_PROPERTY

public static final java.lang.String VALID_AREA_PROPERTY
Deprecated. Replaced by ReferenceSystem.VALID_AREA_KEY.

Key for the "validArea" property to be given to the constructor. This is used for setting the value to be returned by getValidArea().

See Also:
Constant Field Values

SCOPE_PROPERTY

public static final java.lang.String SCOPE_PROPERTY
Deprecated. Replaced by ReferenceSystem.SCOPE_KEY.

Key for the "scope" property to be given to the constructor. This is used for setting the value to be returned by getScope().

See Also:
Constant Field Values
Constructor Detail

AbstractReferenceSystem

public AbstractReferenceSystem(java.util.Map properties)
Constructs a reference system from a set of properties. The properties given in argument follow the same rules than for the super-class constructor. Additionally, the following properties are understood by this construtor:

Property name Value type Value given to
 "validArea"   Extent   getValidArea()
 "scope"   String or InternationalString   getScope()

Method Detail

getValidArea

public org.opengis.metadata.extent.Extent getValidArea()
Area for which the (coordinate) reference system is valid. Returns null if not available.

Specified by:
getValidArea in interface org.opengis.referencing.ReferenceSystem

getScope

public org.opengis.util.InternationalString getScope()
Description of domain of usage, or limitations of usage, for which this (coordinate) reference system object is valid. Returns null if not available.

Specified by:
getScope in interface org.opengis.referencing.ReferenceSystem

equals

public boolean equals(AbstractIdentifiedObject object,
                      boolean compareMetadata)
Compare this reference system with the specified object for equality. If compareMetadata is true, then all available properties are compared including valid area and scope.

Overrides:
equals in class AbstractIdentifiedObject
Parameters:
object - The object to compare to this.
compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations.
Returns:
true if both objects are equal.


Copyright © GeoTools. All Rights Reserved.