org.deegree_impl.model.cs
Class CoordinateSystemAuthorityFactory

java.lang.Object
  extended byorg.deegree_impl.model.cs.CoordinateSystemAuthorityFactory

public abstract class CoordinateSystemAuthorityFactory
extends java.lang.Object

Creates spatial reference objects using codes. The codes are maintained by an external authority. A commonly used authority is EPSG, which is also used in the GeoTIFF standard.

Version:
1.00
Author:
OpenGIS (www.opengis.org), Martin Desruisseaux
See Also:
CS_CoordinateSystemAuthorityFactory

Field Summary
protected  CoordinateSystemFactory factory
          The underlying factory used for objects creation.
 
Constructor Summary
CoordinateSystemAuthorityFactory(CoordinateSystemFactory factory)
          Construct an authority factory using the specified coordinate system factory.
 
Method Summary
 Ellipsoid createEllipsoid(java.lang.String code)
          Returns an Ellipsoid object from a code.
 Unit createUnit(java.lang.String code)
          Returns a Unit object from a code.
abstract  java.lang.String getAuthority()
          Returns the authority name.
(package private)  void setProperties(Info info, java.lang.String code, java.lang.String alias, java.lang.String abbreviation, java.lang.String remarks)
          Set the properties fon an Info object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected final CoordinateSystemFactory factory
The underlying factory used for objects creation.

Constructor Detail

CoordinateSystemAuthorityFactory

public CoordinateSystemAuthorityFactory(CoordinateSystemFactory factory)
Construct an authority factory using the specified coordinate system factory.

Parameters:
factory - The underlying factory used for objects creation.
Method Detail

getAuthority

public abstract java.lang.String getAuthority()
Returns the authority name.


createEllipsoid

public Ellipsoid createEllipsoid(java.lang.String code)
                          throws java.util.NoSuchElementException
Returns an Ellipsoid object from a code.

Parameters:
code - Value allocated by authority.
Returns:
The ellipsoid object.
Throws:
java.util.NoSuchElementException - if this method can't find the requested code.

createUnit

public Unit createUnit(java.lang.String code)
                throws java.util.NoSuchElementException
Returns a Unit object from a code.

Parameters:
code - Value allocated by authority.
Returns:
The unit object.
Throws:
java.util.NoSuchElementException - if this method can't find the requested code.

setProperties

final void setProperties(Info info,
                         java.lang.String code,
                         java.lang.String alias,
                         java.lang.String abbreviation,
                         java.lang.String remarks)
Set the properties fon an Info object. This method should be invoked from all create* methods.

Parameters:
info - The Info object to set properties.
code - The authority code (must not be null).
alias - The alias, or null if none.
abbreviation - The abbreviation, or null if none.
remarks - The remarks, or null if none.