|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.cs.CoordinateSystemAuthorityFactory
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.
CS_CoordinateSystemAuthorityFactory
Field Summary | |
protected CoordinateSystemFactory |
factory
The underlying factory used for objects creation. |
Constructor Summary | |
CoordinateSystemAuthorityFactory(CoordinateSystemFactory factory)
Constructs an authority factory using the specified coordinate system factory. |
Method Summary | |
CompoundCoordinateSystem |
createCompoundCoordinateSystem(java.lang.String code)
Returns a CompoundCoordinateSystem object from a code.
|
abstract CoordinateSystem |
createCoordinateSystem(java.lang.String code)
Returns a CoordinateSystem object from a code. |
abstract Datum |
createDatum(java.lang.String code)
Returns a Datum object from a code. |
abstract Ellipsoid |
createEllipsoid(java.lang.String code)
Returns an Ellipsoid object from a code. |
GeographicCoordinateSystem |
createGeographicCoordinateSystem(java.lang.String code)
Returns a GeographicCoordinateSystem object from a code.
|
HorizontalCoordinateSystem |
createHorizontalCoordinateSystem(java.lang.String code)
Returns a HorizontalCoordinateSystem object from a code.
|
HorizontalDatum |
createHorizontalDatum(java.lang.String code)
Returns a HorizontalDatum object from a code.
|
java.lang.Object |
createObject(java.lang.String code)
Returns an arbitrary Object from a code. |
abstract PrimeMeridian |
createPrimeMeridian(java.lang.String code)
Returns a PrimeMeridian object from a code. |
ProjectedCoordinateSystem |
createProjectedCoordinateSystem(java.lang.String code)
Returns a ProjectedCoordinateSystem object from a code.
|
abstract Unit |
createUnit(java.lang.String code)
Returns a Unit object from a code. |
VerticalCoordinateSystem |
createVerticalCoordinateSystem(java.lang.String code)
Returns a VerticalCoordinateSystem object from a code.
|
VerticalDatum |
createVerticalDatum(java.lang.String code)
Returns a VerticalDatum object from a code.
|
void |
dispose()
Releases resources immediately instead of waiting for the garbage collector. |
abstract java.lang.String |
getAuthority()
Returns the authority name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final CoordinateSystemFactory factory
Constructor Detail |
public CoordinateSystemAuthorityFactory(CoordinateSystemFactory factory)
factory
- The underlying factory used for objects creation.Method Detail |
public abstract java.lang.String getAuthority()
public java.lang.Object createObject(java.lang.String code) throws org.opengis.referencing.FactoryException
Object
from a code. Subclasses can override
this method if they are capable to automatically detect the object type
from its code. The default implementation always throw an exception.
code
- Value allocated by authority.
NoSuchAuthorityCodeException
- if this method can't find the requested code.
org.opengis.referencing.FactoryException
- if some other kind of failure occurred in the backing store.
Most common failure causes include SQLException
or IOException
.createCoordinateSystem(java.lang.String)
,
createDatum(java.lang.String)
,
createEllipsoid(java.lang.String)
,
createUnit(java.lang.String)
public abstract Unit createUnit(java.lang.String code) throws org.opengis.referencing.FactoryException
Unit
object from a code.
code
- Value allocated by authority.
NoSuchAuthorityCodeException
- if this method can't find the requested code.
org.opengis.referencing.FactoryException
- if some other kind of failure occurred in the backing store.
Most common failure causes include SQLException
or IOException
.CS_CoordinateSystemAuthorityFactory.createLinearUnit(java.lang.String)
,
CS_CoordinateSystemAuthorityFactory.createAngularUnit(java.lang.String)
public abstract Ellipsoid createEllipsoid(java.lang.String code) throws org.opengis.referencing.FactoryException
Ellipsoid
object from a code.
code
- Value allocated by authority.
NoSuchAuthorityCodeException
- if this method can't find the requested code.
org.opengis.referencing.FactoryException
- if some other kind of failure occurred in the backing store.
Most common failure causes include SQLException
or IOException
.CS_CoordinateSystemAuthorityFactory.createEllipsoid(java.lang.String)
public abstract PrimeMeridian createPrimeMeridian(java.lang.String code) throws org.opengis.referencing.FactoryException
PrimeMeridian
object from a code.
code
- Value allocated by authority.
NoSuchAuthorityCodeException
- if this method can't find the requested code.
org.opengis.referencing.FactoryException
- if some other kind of failure occurred in the backing store.
Most common failure causes include SQLException
or IOException
.CS_CoordinateSystemAuthorityFactory.createPrimeMeridian(java.lang.String)
public abstract Datum createDatum(java.lang.String code) throws org.opengis.referencing.FactoryException
Datum
object from a code.
code
- Value allocated by authority.
NoSuchAuthorityCodeException
- if this method can't find the requested code.
org.opengis.referencing.FactoryException
- if some other kind of failure occurred in the backing store.
Most common failure causes include SQLException
or IOException
.createHorizontalDatum(java.lang.String)
,
createVerticalDatum(java.lang.String)
public HorizontalDatum createHorizontalDatum(java.lang.String code) throws org.opengis.referencing.FactoryException
HorizontalDatum
object from a code.
The default implementation invokes createDatum(java.lang.String)
.
code
- Value allocated by authority.
NoSuchAuthorityCodeException
- if this method can't find the requested code.
org.opengis.referencing.FactoryException
- if some other kind of failure occurred in the backing store.
Most common failure causes include SQLException
or IOException
.CS_CoordinateSystemAuthorityFactory.createHorizontalDatum(java.lang.String)
public VerticalDatum createVerticalDatum(java.lang.String code) throws org.opengis.referencing.FactoryException
VerticalDatum
object from a code.
The default implementation invokes createDatum(java.lang.String)
.
code
- Value allocated by authority.
NoSuchAuthorityCodeException
- if this method can't find the requested code.
org.opengis.referencing.FactoryException
- if some other kind of failure occurred in the backing store.
Most common failure causes include SQLException
or IOException
.CS_CoordinateSystemAuthorityFactory.createVerticalDatum(java.lang.String)
public abstract CoordinateSystem createCoordinateSystem(java.lang.String code) throws org.opengis.referencing.FactoryException
CoordinateSystem
object from a code.
code
- Value allocated by authority.
NoSuchAuthorityCodeException
- if this method can't find the requested code.
org.opengis.referencing.FactoryException
- if some other kind of failure occurred in the backing store.
Most common failure causes include SQLException
or IOException
.createHorizontalCoordinateSystem(java.lang.String)
,
createGeographicCoordinateSystem(java.lang.String)
,
createProjectedCoordinateSystem(java.lang.String)
,
createVerticalCoordinateSystem(java.lang.String)
,
createCompoundCoordinateSystem(java.lang.String)
public HorizontalCoordinateSystem createHorizontalCoordinateSystem(java.lang.String code) throws org.opengis.referencing.FactoryException
HorizontalCoordinateSystem
object from a code.
The default implementation invokes createCoordinateSystem(java.lang.String)
.
code
- Value allocated by authority.
NoSuchAuthorityCodeException
- if this method can't find the requested code.
org.opengis.referencing.FactoryException
- if some other kind of failure occurred in the backing store.
Most common failure causes include SQLException
or IOException
.CS_CoordinateSystemAuthorityFactory.createHorizontalCoordinateSystem(java.lang.String)
public GeographicCoordinateSystem createGeographicCoordinateSystem(java.lang.String code) throws org.opengis.referencing.FactoryException
GeographicCoordinateSystem
object from a code.
The default implementation invokes createHorizontalCoordinateSystem(java.lang.String)
.
code
- Value allocated by authority.
NoSuchAuthorityCodeException
- if this method can't find the requested code.
org.opengis.referencing.FactoryException
- if some other kind of failure occurred in the backing store.
Most common failure causes include SQLException
or IOException
.CS_CoordinateSystemAuthorityFactory.createGeographicCoordinateSystem(java.lang.String)
public ProjectedCoordinateSystem createProjectedCoordinateSystem(java.lang.String code) throws org.opengis.referencing.FactoryException
ProjectedCoordinateSystem
object from a code.
The default implementation invokes createHorizontalCoordinateSystem(java.lang.String)
.
code
- Value allocated by authority.
NoSuchAuthorityCodeException
- if this method can't find the requested code.
org.opengis.referencing.FactoryException
- if some other kind of failure occurred in the backing store.
Most common failure causes include SQLException
or IOException
.CS_CoordinateSystemAuthorityFactory.createProjectedCoordinateSystem(java.lang.String)
public VerticalCoordinateSystem createVerticalCoordinateSystem(java.lang.String code) throws org.opengis.referencing.FactoryException
VerticalCoordinateSystem
object from a code.
The default implementation invokes createCoordinateSystem(java.lang.String)
.
code
- Value allocated by authority.
NoSuchAuthorityCodeException
- if this method can't find the requested code.
org.opengis.referencing.FactoryException
- if some other kind of failure occurred in the backing store.
Most common failure causes include SQLException
or IOException
.CS_CoordinateSystemAuthorityFactory.createVerticalCoordinateSystem(java.lang.String)
public CompoundCoordinateSystem createCompoundCoordinateSystem(java.lang.String code) throws org.opengis.referencing.FactoryException
CompoundCoordinateSystem
object from a code.
The default implementation invokes createCoordinateSystem(java.lang.String)
.
code
- Value allocated by authority.
NoSuchAuthorityCodeException
- if this method can't find the requested code.
org.opengis.referencing.FactoryException
- if some other kind of failure occurred in the backing store.
Most common failure causes include SQLException
or IOException
.CS_CoordinateSystemAuthorityFactory.createCompoundCoordinateSystem(java.lang.String)
public void dispose() throws org.opengis.referencing.FactoryException
create(...)
invocations
may throw a FactoryException
. Disposing a previously-disposed factory,
however, has no effect.
org.opengis.referencing.FactoryException
- if an error occured while disposing the factory.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |