| |
|
| org.geotools.referencing.factory.ReferencingFactory org.geotools.referencing.factory.AbstractAuthorityFactory org.geotools.referencing.factory.AuthorityFactoryAdapter org.geotools.referencing.factory.URN_AuthorityFactory
URN_AuthorityFactory | public class URN_AuthorityFactory extends AuthorityFactoryAdapter implements CRSAuthorityFactory,CSAuthorityFactory,DatumAuthorityFactory,CoordinateOperationAuthorityFactory(Code) | | Wraps
in a
"urn:ogc:def" name space. An exemple of complete URN is
"urn:ogc:def:crs:EPSG:6.8:4326" .
Users don't need to create an instance of this class, since one is automatically
registered for use in
org.opengis.referencing.ReferencingFactoryFinder .
since: 2.4 version: $Id: URN_AuthorityFactory.java 29058 2008-02-03 17:47:07Z desruisseaux $ author: Justin Deoliveira author: Martin Desruisseaux See Also: URNs of definitions
* in OGC namespaceorg.geotools.referencing.ReferencingFactoryFinder |
Method Summary | |
protected AuthorityFactory | createVersionedFactory(Version version) Invoked when a factory is requested for a specific version. | public Citation | getAuthority() Returns the authority, which contains
"urn:ogc:def" and
"urn:x-ogc:def" identifiers. | protected AuthorityFactory | getAuthorityFactory(String code) Returns an object factory for the specified code. | protected CRSAuthorityFactory | getCRSAuthorityFactory(String code) Returns the coordinate reference system factory to use for the specified URN.
If the URN contains a version string, then this method will try to fetch a factory
for that particular version. | protected CSAuthorityFactory | getCSAuthorityFactory(String code) Returns the coordinate system factory to use for the specified URN. | protected CoordinateOperationAuthorityFactory | getCoordinateOperationAuthorityFactory(String code) Returns the coordinate operation factory to use for the specified URN. | protected DatumAuthorityFactory | getDatumAuthorityFactory(String code) Returns the datum factory to use for the specified URN. | protected String | toBackingFactoryCode(String code) Removes the URN base (
"urn:ogc:def" ) from the specified code
before to pass it to the wrapped factories.
Parameters: code - The code given to this factory. |
URN_AuthorityFactory | public URN_AuthorityFactory()(Code) | | Creates a default wrapper.
|
URN_AuthorityFactory | public URN_AuthorityFactory(Hints userHints)(Code) | | Creates a wrapper using the specified hints. For strict compliance with OGC definition
of
"urn:ogc:def" namespace, the supplied hints should contains at least the
Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER FORCE_LONGITUDE_FIRST_AXIS_ORDER hint
with value
Boolean.FALSE FALSE .
Parameters: userHints - The hints to be given to backing factories. |
URN_AuthorityFactory | public URN_AuthorityFactory(AllAuthoritiesFactory factory)(Code) | | Creates a wrapper around the specified factory. The supplied factory is given unchanged
to the
.
|
createVersionedFactory | protected AuthorityFactory createVersionedFactory(Version version) throws FactoryException(Code) | | Invoked when a factory is requested for a specific version. This method should create
a factory for the exact version specified by the argument, or return
null if
no such factory is available. In the later case, this class will fallback on the factory
specified at
.
Parameters: version - The version for the factory to create. The factory, of null if there is none for the specified version. throws: FactoryException - if an error occured while creating the factory. |
getAuthority | public Citation getAuthority()(Code) | | Returns the authority, which contains
"urn:ogc:def" and
"urn:x-ogc:def" identifiers.
|
getAuthorityFactory | protected AuthorityFactory getAuthorityFactory(String code) throws FactoryException(Code) | | Returns an object factory for the specified code. This method invokes one of the
get TypeAuthorityFactory methods where
Type is inferred from the code.
Parameters: code - The authority code given to this class. A factory for the specified authority code (never null ). throws: FactoryException - if no suitable factory were found. |
getCRSAuthorityFactory | protected CRSAuthorityFactory getCRSAuthorityFactory(String code) throws FactoryException(Code) | | Returns the coordinate reference system factory to use for the specified URN.
If the URN contains a version string, then this method will try to fetch a factory
for that particular version. The
URN_AuthorityFactory.createVersionedFactory method may be
invoked for that purpose. If no factory is provided for that specific version, then
the
is used.
Parameters: code - The URN given to this class. A factory for the specified URN (never null ). throws: FactoryException - if no coordinate reference system factory is available. |
getCSAuthorityFactory | protected CSAuthorityFactory getCSAuthorityFactory(String code) throws FactoryException(Code) | | Returns the coordinate system factory to use for the specified URN. If the URN contains a
version string, then this method will try to fetch a factory for that particular version.
The
URN_AuthorityFactory.createVersionedFactory method may be invoked for that purpose. If no factory
is provided for that specific version, then the
is used.
Parameters: code - The URN given to this class. A factory for the specified URN (never null ). throws: FactoryException - if no coordinate system factory is available. |
getCoordinateOperationAuthorityFactory | protected CoordinateOperationAuthorityFactory getCoordinateOperationAuthorityFactory(String code) throws FactoryException(Code) | | Returns the coordinate operation factory to use for the specified URN. If the URN
contains a version string, then this method will try to fetch a factory for that
particular version. The
URN_AuthorityFactory.createVersionedFactory method may be invoked for
that purpose. If no factory is provided for that specific version, then the
is used.
Parameters: code - The URN given to this class. A factory for the specified URN (never null ). throws: FactoryException - if no coordinate operation factory is available. |
getDatumAuthorityFactory | protected DatumAuthorityFactory getDatumAuthorityFactory(String code) throws FactoryException(Code) | | Returns the datum factory to use for the specified URN. If the URN contains a version
string, then this method will try to fetch a factory for that particular version. The
URN_AuthorityFactory.createVersionedFactory method may be invoked for that purpose. If no factory
is provided for that specific version, then the
is used.
Parameters: code - The URN given to this class. A factory for the specified URN (never null ). throws: FactoryException - if no datum factory is available. |
toBackingFactoryCode | protected String toBackingFactoryCode(String code) throws FactoryException(Code) | | Removes the URN base (
"urn:ogc:def" ) from the specified code
before to pass it to the wrapped factories.
Parameters: code - The code given to this factory. The code to give to the underlying factories. throws: FactoryException - if the code can't be converted. |
Fields inherited from org.geotools.referencing.factory.AuthorityFactoryAdapter | final protected CRSAuthorityFactory crsFactory(Code)(Java Doc) final protected CSAuthorityFactory csFactory(Code)(Java Doc) final protected DatumAuthorityFactory datumFactory(Code)(Java Doc) final protected CoordinateOperationAuthorityFactory operationFactory(Code)(Java Doc)
|
|
|
|