org.geotools.cs
Class HorizontalCoordinateSystem

java.lang.Object
  extended byorg.geotools.cs.Info
      extended byorg.geotools.cs.CoordinateSystem
          extended byorg.geotools.cs.HorizontalCoordinateSystem
All Implemented Interfaces:
org.opengis.referencing.crs.CoordinateReferenceSystem, Dimensioned, org.opengis.referencing.IdentifiedObject, org.opengis.referencing.ReferenceSystem, java.io.Serializable
Direct Known Subclasses:
GeographicCoordinateSystem, ProjectedCoordinateSystem

Deprecated. No direct replacement. The nearest parent is AbstractCRS.

public abstract class HorizontalCoordinateSystem
extends CoordinateSystem

A 2D coordinate system suitable for positions on the Earth's surface.

Version:
$Id: HorizontalCoordinateSystem.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
OpenGIS (www.opengis.org), Martin Desruisseaux
See Also:
CS_HorizontalCoordinateSystem, Serialized Form

Field Summary
 
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
HorizontalCoordinateSystem(java.lang.CharSequence name, HorizontalDatum datum, AxisInfo axis0, AxisInfo axis1)
          Deprecated. Constructs a coordinate system.
 
Method Summary
 boolean equals(Info object, boolean compareNames)
          Deprecated. Compare this coordinate system with the specified object for equality.
 AxisInfo getAxis(int dimension)
          Deprecated. Gets axis details for dimension within coordinate system.
 int getDimension()
          Deprecated. Returns the dimension of this coordinate system, which is 2.
 HorizontalDatum getHorizontalDatum()
          Deprecated. Replaced by AbstractSingleCRS.getDatum().
 int hashCode()
          Deprecated. Returns a hash value for this coordinate system.
 
Methods inherited from class org.geotools.cs.CoordinateSystem
fromGeoAPI, getCoordinateSystem, getDatum, getDefaultEnvelope, getScope, getUnits, getValidArea
 
Methods inherited from class org.geotools.cs.Info
ensureNonNull, equals, getAbbreviation, getAlias, getAlias, getAuthority, getAuthorityCode, getIdentifiers, getName, getRemarks, toString, 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
 

Constructor Detail

HorizontalCoordinateSystem

public HorizontalCoordinateSystem(java.lang.CharSequence name,
                                  HorizontalDatum datum,
                                  AxisInfo axis0,
                                  AxisInfo axis1)
Deprecated. 
Constructs a coordinate system.

Parameters:
name - The coordinate system name.
datum - The horizontal datum.
axis0 - Details of 0th ordinates in created coordinate system.
axis1 - Details of 1st ordinates in created coordinate system.
Method Detail

getDimension

public final int getDimension()
Deprecated. 
Returns the dimension of this coordinate system, which is 2.

Specified by:
getDimension in interface Dimensioned
Specified by:
getDimension in class CoordinateSystem
See Also:
CS_CoordinateSystem.getDimension()

getHorizontalDatum

public HorizontalDatum getHorizontalDatum()
Deprecated. Replaced by AbstractSingleCRS.getDatum().

Returns the horizontal datum.

See Also:
CS_HorizontalCoordinateSystem.getHorizontalDatum()

getAxis

public AxisInfo getAxis(int dimension)
Deprecated. 
Gets axis details for dimension within coordinate system.

Specified by:
getAxis in class CoordinateSystem
Parameters:
dimension - Zero based index of axis.
See Also:
CS_CoordinateSystem.getAxis(int)

equals

public boolean equals(Info object,
                      boolean compareNames)
Deprecated. 
Compare this coordinate system with the specified object for equality.

Overrides:
equals in class Info
Parameters:
object - The object to compare to this.
compareNames - true to comparare the name, alias, authority code, etc. as well, or false to compare only properties relevant to transformations.
Returns:
true if both objects are equal.

hashCode

public int hashCode()
Deprecated. 
Returns a hash value for this coordinate system. Name, alias, authority code and the like are not taken in account. In other words, two coordinate systems will return the same hash value if they are equal in the sense of equals(Info, false).

Overrides:
hashCode in class Info
Returns:
The hash code value. This value doesn't need to be the same in past or future versions of this class.


Copyright © GeoTools. All Rights Reserved.