org.geotools.cs
Class CoordinateSystemAUTOFactory

java.lang.Object
  extended byorg.geotools.cs.CoordinateSystemAuthorityFactory
      extended byorg.geotools.cs.CoordinateSystemAUTOFactory

Deprecated. Replaced by org.geotools.referencing.AUTOCRSAuthorityFactory.

public class CoordinateSystemAUTOFactory
extends CoordinateSystemAuthorityFactory

Generate Automatic Projections (dynamic projections) based on code and location. Automatic Projections are defined in Annex E of OGC-01-068r3.

The lon0/lat0 are provided by the SRS parameter of the map request (see Section 6.5.5.2 of OGC 01-068r3)

This is a first-attempt CoordinateSystemAuthority to me and is not up to the usual high standards of the rest of this package. Please aid in improving this class with bug reports etc...

Version:
$Id: CoordinateSystemAUTOFactory.java 11470 2005-02-17 04:34:51Z desruisseaux $
Author:
Jody Garnett

Field Summary
 
Fields inherited from class org.geotools.cs.CoordinateSystemAuthorityFactory
factory
 
Constructor Summary
CoordinateSystemAUTOFactory(CoordinateSystemFactory factory)
          Deprecated. Construct a authority factory backed by the specified factory.
 
Method Summary
 CoordinateSystem createCoordinateSystem(java.lang.String code)
          Deprecated. Returns a CoordinateSystem object from a code.
 Datum createDatum(java.lang.String code)
          Deprecated. Returns a Datum object from a code.
 Ellipsoid createEllipsoid(java.lang.String code)
          Deprecated. Returns an Ellipsoid object from a code.
 PrimeMeridian createPrimeMeridian(java.lang.String code)
          Deprecated. Returns a PrimeMeridian object from a code.
 Unit createUnit(java.lang.String code)
          Deprecated. Returns a Unit object from a code.
 java.lang.String getAuthority()
          Deprecated. Returns the authority name, which is known as "Automatic".
 
Methods inherited from class org.geotools.cs.CoordinateSystemAuthorityFactory
createCompoundCoordinateSystem, createGeographicCoordinateSystem, createHorizontalCoordinateSystem, createHorizontalDatum, createObject, createProjectedCoordinateSystem, createVerticalCoordinateSystem, createVerticalDatum, dispose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordinateSystemAUTOFactory

public CoordinateSystemAUTOFactory(CoordinateSystemFactory factory)
Deprecated. 
Construct a authority factory backed by the specified factory.

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

getAuthority

public java.lang.String getAuthority()
Deprecated. 
Returns the authority name, which is known as "Automatic".

I assume this is the "display name" presented to end users?

Specified by:
getAuthority in class CoordinateSystemAuthorityFactory
Task:
REVISIT: "AUTO" is not really an authority name. Which organisation is the author of annex E in OGC-01-068r3?

createUnit

public Unit createUnit(java.lang.String code)
                throws org.opengis.referencing.FactoryException
Deprecated. 
Returns a Unit object from a code.

Specified by:
createUnit in class CoordinateSystemAuthorityFactory
Parameters:
code - Value allocated by authority.
Returns:
The unit.
Throws:
org.opengis.referencing.FactoryException - if some other kind of failure occurred in the backing store. Most common failure causes include SQLException or IOException.
See Also:
CS_CoordinateSystemAuthorityFactory.createLinearUnit(java.lang.String), CS_CoordinateSystemAuthorityFactory.createAngularUnit(java.lang.String)

createEllipsoid

public Ellipsoid createEllipsoid(java.lang.String code)
                          throws org.opengis.referencing.FactoryException
Deprecated. 
Returns an Ellipsoid object from a code.

Specified by:
createEllipsoid in class CoordinateSystemAuthorityFactory
Parameters:
code - Value allocated by authority.
Returns:
The ellipsoid.
Throws:
org.opengis.referencing.FactoryException - if some other kind of failure occurred in the backing store. Most common failure causes include SQLException or IOException.
See Also:
CS_CoordinateSystemAuthorityFactory.createEllipsoid(java.lang.String)

createPrimeMeridian

public PrimeMeridian createPrimeMeridian(java.lang.String code)
                                  throws org.opengis.referencing.FactoryException
Deprecated. 
Returns a PrimeMeridian object from a code.

Specified by:
createPrimeMeridian in class CoordinateSystemAuthorityFactory
Parameters:
code - Value allocated by authority.
Returns:
The prime meridian.
Throws:
org.opengis.referencing.FactoryException - if some other kind of failure occurred in the backing store. Most common failure causes include SQLException or IOException.
See Also:
CS_CoordinateSystemAuthorityFactory.createPrimeMeridian(java.lang.String)

createDatum

public Datum createDatum(java.lang.String code)
                  throws org.opengis.referencing.FactoryException
Deprecated. 
Returns a Datum object from a code.

Specified by:
createDatum in class CoordinateSystemAuthorityFactory
Parameters:
code - Value allocated by authority.
Returns:
The datum.
Throws:
org.opengis.referencing.FactoryException - if some other kind of failure occurred in the backing store. Most common failure causes include SQLException or IOException.
See Also:
CoordinateSystemAuthorityFactory.createHorizontalDatum(java.lang.String), CoordinateSystemAuthorityFactory.createVerticalDatum(java.lang.String)

createCoordinateSystem

public CoordinateSystem createCoordinateSystem(java.lang.String code)
                                        throws org.opengis.referencing.FactoryException
Deprecated. 
Returns a CoordinateSystem object from a code.

Specified by:
createCoordinateSystem in class CoordinateSystemAuthorityFactory
Parameters:
code - Value allocated by authority.
Returns:
The coordinate system.
Throws:
org.opengis.referencing.FactoryException - if some other kind of failure occurred in the backing store. Most common failure causes include SQLException or IOException.
See Also:
CoordinateSystemAuthorityFactory.createHorizontalCoordinateSystem(java.lang.String), CoordinateSystemAuthorityFactory.createGeographicCoordinateSystem(java.lang.String), CoordinateSystemAuthorityFactory.createProjectedCoordinateSystem(java.lang.String), CoordinateSystemAuthorityFactory.createVerticalCoordinateSystem(java.lang.String), CoordinateSystemAuthorityFactory.createCompoundCoordinateSystem(java.lang.String)


Copyright © GeoTools. All Rights Reserved.