|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFactory
ReferencingFactory
AbstractAuthorityFactory
AuthorityFactoryAdapter
URN_AuthorityFactory
@ThreadSafe public class URN_AuthorityFactory
Wraps all factories 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 ReferencingFactoryFinder.
| referencing/geotk-referencing (download) | View source code for this class |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class Factory |
|---|
Factory.Availability, Factory.Organizer |
| Field Summary |
|---|
| Fields inherited from class AbstractAuthorityFactory |
|---|
nameFactory |
| Fields inherited from class ReferencingFactory |
|---|
LOGGER |
| Fields inherited from class Factory |
|---|
EMPTY_HINTS, hints |
| Constructor Summary | |
|---|---|
URN_AuthorityFactory()
Creates a default wrapper. |
|
URN_AuthorityFactory(AllAuthoritiesFactory factory)
Creates a wrapper around the specified factory. |
|
URN_AuthorityFactory(Hints userHints)
Creates a wrapper using the specified hints. |
|
| Method Summary | |
|---|---|
protected AuthorityFactory |
createVersionedFactory(Version version)
Invoked when a factory is requested for a specific version. |
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 CoordinateOperationAuthorityFactory |
getCoordinateOperationAuthorityFactory(String code)
Returns the coordinate operation factory to use for the specified URN. |
protected CRSAuthorityFactory |
getCRSAuthorityFactory(String code)
Returns the coordinate reference system factory to use for the specified URN. |
protected CSAuthorityFactory |
getCSAuthorityFactory(String code)
Returns the coordinate system factory to use for the specified URN. |
protected DatumAuthorityFactory |
getDatumAuthorityFactory(String code)
Returns the datum factory to use for the specified URN. |
IdentifiedObjectFinder |
getIdentifiedObjectFinder(Class<? extends IdentifiedObject> type)
Returns a finder which can be used for looking up unidentified objects. |
protected boolean |
hasCompatibleHints(Hints hints)
Returns true if this factory meets the requirements specified by a map of hints. |
protected void |
setOrdering(Factory.Organizer organizer)
Sets the ordering of this factory relative to other factories. |
protected String |
toBackingFactoryCode(String code)
Removes the URN base ( "urn:ogc:def") from the specified code
before to pass it to the wrapped factories. |
| Methods inherited from class AbstractAuthorityFactory |
|---|
dispose, noSuchAuthorityCode, trimAuthority |
| Methods inherited from class ReferencingFactory |
|---|
ensureNonNull |
| Methods inherited from class Factory |
|---|
equals, hashCode, toString |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface CRSAuthorityFactory |
|---|
createCompoundCRS, createCoordinateReferenceSystem, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRS |
| Methods inherited from interface CSAuthorityFactory |
|---|
createCartesianCS, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createEllipsoidalCS, createPolarCS, createSphericalCS, createTimeCS, createUnit, createVerticalCS |
| Methods inherited from interface DatumAuthorityFactory |
|---|
createDatum, createEllipsoid, createEngineeringDatum, createGeodeticDatum, createImageDatum, createPrimeMeridian, createTemporalDatum, createVerticalDatum |
| Methods inherited from interface CoordinateOperationAuthorityFactory |
|---|
createCoordinateOperation, createFromCoordinateReferenceSystemCodes, createOperationMethod |
| Methods inherited from interface AuthorityFactory |
|---|
createObject, getAuthorityCodes, getDescriptionText |
| Methods inherited from interface Factory |
|---|
getVendor |
| Constructor Detail |
|---|
public URN_AuthorityFactory()
public URN_AuthorityFactory(Hints userHints)
"urn:ogc:def" namespace, the supplied hints should contains at least the
FORCE_LONGITUDE_FIRST_AXIS_ORDER hint
with value FALSE.
userHints - The hints to be given to backing factories.public URN_AuthorityFactory(AllAuthoritiesFactory factory)
factory - The factory on which to delegate object creation.| Method Detail |
|---|
public Citation getAuthority()
"urn:ogc:def" and "urn:x-ogc:def"
identifiers.
getAuthority in interface AuthorityFactorygetAuthority in class AuthorityFactoryAdapter
protected AuthorityFactory getAuthorityFactory(String code)
throws FactoryException
getTypeAuthorityFactory methods where
Type is inferred from the code.
getAuthorityFactory in class AuthorityFactoryAdaptercode - The authority code given to this class.
null).
FactoryException - if no suitable factory were found.
protected DatumAuthorityFactory getDatumAuthorityFactory(String code)
throws FactoryException
createVersionedFactory(org.geotoolkit.util.Version) method may be invoked for that purpose. If no factory
is provided for that specific version, then the
default one is used.
getDatumAuthorityFactory in class AuthorityFactoryAdaptercode - The URN given to this class.
null).
FactoryException - if no datum factory is available.
protected CSAuthorityFactory getCSAuthorityFactory(String code)
throws FactoryException
createVersionedFactory(org.geotoolkit.util.Version) method may be invoked for that purpose. If no factory
is provided for that specific version, then the
default one is used.
getCSAuthorityFactory in class AuthorityFactoryAdaptercode - The URN given to this class.
null).
FactoryException - if no coordinate system factory is available.
protected CRSAuthorityFactory getCRSAuthorityFactory(String code)
throws FactoryException
createVersionedFactory(org.geotoolkit.util.Version) method may be
invoked for that purpose. If no factory is provided for that specific version, then
the default one is used.
getCRSAuthorityFactory in class AuthorityFactoryAdaptercode - The URN given to this class.
null).
FactoryException - if no coordinate reference system factory is available.
protected CoordinateOperationAuthorityFactory getCoordinateOperationAuthorityFactory(String code)
throws FactoryException
createVersionedFactory(org.geotoolkit.util.Version) method may be invoked for
that purpose. If no factory is provided for that specific version, then the
default one
is used.
getCoordinateOperationAuthorityFactory in class AuthorityFactoryAdaptercode - The URN given to this class.
null).
FactoryException - if no coordinate operation factory is available.
protected AuthorityFactory createVersionedFactory(Version version)
throws FactoryException
null if
no such factory is available. In the later case, this class will fallback on the factory
specified at construction time.
version - The version for the factory to create.
null if there is none for the specified version.
FactoryException - if an error occurred while creating the factory.
protected String toBackingFactoryCode(String code)
throws FactoryException
"urn:ogc:def") from the specified code
before to pass it to the wrapped factories.
toBackingFactoryCode in class AuthorityFactoryAdaptercode - The code given to this factory.
FactoryException - if the code can't be converted.
public IdentifiedObjectFinder getIdentifiedObjectFinder(Class<? extends IdentifiedObject> type)
throws FactoryException
AllAuthoritiesFactory. No additional work is performed, except in the case
of the findIdentifier method which
format the code in a "urn:ogc:def" syntax.
getIdentifiedObjectFinder in class AuthorityFactoryAdaptertype - The type of objects to look for. Should be a GeoAPI interface like
GeographicCRS.class, but this method accepts also implementation
class. If the type is unknown, use IdentifiedObject.class. A more
accurate type may help to speed up the search, since it reduces the amount
of tables to scan in some implementations (for example the factories backed
by EPSG databases).
FactoryException - if the finder can not be created.protected boolean hasCompatibleHints(Hints hints)
true if this factory meets the requirements specified by a map of hints.
This information is for FactoryRegistry usage only.
hasCompatibleHints in class Factoryprotected void setOrdering(Factory.Organizer organizer)
URN_AuthorityFactory is selected only if there is no suitable instance
of AbstractAuthorityFactory for user request.
setOrdering in class Factory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||