oracle.sdoapi.sref
Interface SpatialReference

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
GeographicCS, NonEarthCS, ProjectedCS
All Known Implementing Classes:
srsHolder

public interface SpatialReference
extends java.io.Serializable

Interface for a spatial reference system. A spatial reference system can be one of the following coordinate systems:
1. Geographic Coordinate System (GCS)
2. Projected Coordinate System (PCS)
3. Non-Earth Coordinate System (NECS)
Spatial reference systems are created and managed by the spatial reference system manager SRManager.


Method Summary
 int getDimension()
          Gets the dimension of this spatial reference system.
 int getID()
          Gets the ID for this spatial reference system.
 java.lang.String getName()
          Gets the name for this spatial reference system.
 java.lang.String getWellKnowText()
          Gets the well-known text string for this spatial reference system.
 boolean isGeographicCS()
          Returns true if this spatial reference system is a geographic coordinate system.
 boolean isNonEarthCS()
          Returns true if this spatial reference system is a non-Earth coordinate system.
 boolean isProjectedCS()
          Returns true if this spatial reference system is a projected coordinate system.
 boolean sameAs(SpatialReference ref2)
          Checks whether this spatial reference system is effectively the same as ref2.
 

Method Detail

getID

public int getID()
Gets the ID for this spatial reference system.

getName

public java.lang.String getName()
Gets the name for this spatial reference system.

getWellKnowText

public java.lang.String getWellKnowText()
Gets the well-known text string for this spatial reference system.

getDimension

public int getDimension()
Gets the dimension of this spatial reference system.

isGeographicCS

public boolean isGeographicCS()
Returns true if this spatial reference system is a geographic coordinate system. Otherwise returns false.

isProjectedCS

public boolean isProjectedCS()
Returns true if this spatial reference system is a projected coordinate system. Otherwise returns false.

isNonEarthCS

public boolean isNonEarthCS()
Returns true if this spatial reference system is a non-Earth coordinate system. Otherwise returns false.

sameAs

public boolean sameAs(SpatialReference ref2)
Checks whether this spatial reference system is effectively the same as ref2. The equality test ignores the differences in IDs and Names. Rather, it compares the datum, spheroid, projection type, and parameters and units used.