public abstract class Abstract_URI_AuthorityFactory extends AuthorityFactoryAdapter implements CRSAuthorityFactory, CSAuthorityFactory, DatumAuthorityFactory, CoordinateOperationAuthorityFactory
AllAuthoritiesFactory
.LOGGER
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
Constructor and Description |
---|
Abstract_URI_AuthorityFactory(AllAuthoritiesFactory factory)
Creates a wrapper around the specified factory.
|
Abstract_URI_AuthorityFactory(Hints userHints,
String hintsAuthority)
Creates a wrapper using the specified hints.
|
Abstract_URI_AuthorityFactory(String hintsAuthority)
Creates a default wrapper
|
Modifier and Type | Method and Description |
---|---|
protected abstract URI_Parser |
buildParser(String code)
Subclasses must implement this method to return a subclass of URI_Parser appropriate to their
URI.
|
protected AuthorityFactory |
createVersionedFactory(Version version)
Invoked when a factory is requested for a specific version.
|
abstract Citation |
getAuthority()
Returns the organization or party responsible for definition and maintenance of the database.
|
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 URI.
|
protected CRSAuthorityFactory |
getCRSAuthorityFactory(String code)
Returns the coordinate reference system factory to use for the specified URI.
|
protected CSAuthorityFactory |
getCSAuthorityFactory(String code)
Returns the coordinate system factory to use for the specified URI.
|
protected DatumAuthorityFactory |
getDatumAuthorityFactory(String code)
Returns the datum factory to use for the specified URI.
|
protected String |
toBackingFactoryCode(String code)
Returns a simple authority code (like "EPSG:4236") that can be passed to the wrapped
factories.
|
createCartesianCS, createCompoundCRS, createCoordinateOperation, createCoordinateReferenceSystem, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createDerivedCRS, createEllipsoid, createEllipsoidalCS, createEngineeringCRS, createEngineeringDatum, createExtent, createFromCoordinateReferenceSystemCodes, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createObject, createOperationMethod, createParameterDescriptor, createPolarCS, createPrimeMeridian, createProjectedCRS, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createUnit, createVerticalCRS, createVerticalCS, createVerticalDatum, dispose, getAuthorityCodes, getBackingStoreDescription, getDescriptionText, getIdentifiedObjectFinder, getVendor, isAvailable
noSuchAuthorityCode, trimAuthority
ensureNonNull
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString
createCompoundCRS, createCoordinateReferenceSystem, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRS
createCartesianCS, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createEllipsoidalCS, createPolarCS, createSphericalCS, createTimeCS, createUnit, createVerticalCS
createDatum, createEllipsoid, createEngineeringDatum, createGeodeticDatum, createImageDatum, createPrimeMeridian, createTemporalDatum, createVerticalDatum
createCoordinateOperation, createFromCoordinateReferenceSystemCodes
createObject, getAuthorityCodes, getDescriptionText
getImplementationHints
public Abstract_URI_AuthorityFactory(String hintsAuthority)
hintsAuthority
- the name used to reference thi factory in Hints.FORCE_AXIS_ORDER_HONORING
.public Abstract_URI_AuthorityFactory(Hints userHints, String hintsAuthority)
FORCE_LONGITUDE_FIRST_AXIS_ORDER
hint with value FALSE
.userHints
- The hints to be given to backing factories.hintsAuthority
- the name used to reference thi factory in Hints.FORCE_AXIS_ORDER_HONORING
.public Abstract_URI_AuthorityFactory(AllAuthoritiesFactory factory)
protected abstract URI_Parser buildParser(String code) throws NoSuchAuthorityCodeException
code
- the URI to be parsedNoSuchAuthorityCodeException
public abstract Citation getAuthority()
AuthorityFactoryAdapter
getAuthority
in interface AuthorityFactory
getAuthority
in class AuthorityFactoryAdapter
AuthorityFactoryAdapter.getAuthority()
protected AuthorityFactory getAuthorityFactory(String code) throws FactoryException
get
TypeAuthorityFactory
methods where Type is inferred
from the code.getAuthorityFactory
in class AuthorityFactoryAdapter
code
- The authority code given to this class.null
).FactoryException
- if no suitable factory were found.protected DatumAuthorityFactory getDatumAuthorityFactory(String code) throws FactoryException
createVersionedFactory(org.geotools.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 AuthorityFactoryAdapter
code
- The URI given to this class.null
).FactoryException
- if no datum factory is available.protected CSAuthorityFactory getCSAuthorityFactory(String code) throws FactoryException
createVersionedFactory(org.geotools.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 AuthorityFactoryAdapter
code
- The URI given to this class.null
).FactoryException
- if no coordinate system factory is available.protected CRSAuthorityFactory getCRSAuthorityFactory(String code) throws FactoryException
createVersionedFactory(org.geotools.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 AuthorityFactoryAdapter
code
- The URI given to this class.null
).FactoryException
- if no coordinate reference system factory is available.protected CoordinateOperationAuthorityFactory getCoordinateOperationAuthorityFactory(String code) throws FactoryException
createVersionedFactory(org.geotools.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 AuthorityFactoryAdapter
code
- The URI 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
toBackingFactoryCode
in class AuthorityFactoryAdapter
code
- The code given to this factory.FactoryException
- if the code can't be converted.Copyright © 1996–2022 Geotools. All rights reserved.