Package org.geotools.referencing.factory
Class HTTP_AuthorityFactory
Object
AbstractFactory
ReferencingFactory
AbstractAuthorityFactory
AuthorityFactoryAdapter
HTTP_AuthorityFactory
- All Implemented Interfaces:
AuthorityFactory,CRSAuthorityFactory,CSAuthorityFactory,DatumAuthorityFactory,Factory,CoordinateOperationAuthorityFactory,Factory,OptionalFactory,RegistrableFactory
public class HTTP_AuthorityFactory
extends AuthorityFactoryAdapter
implements CRSAuthorityFactory, CSAuthorityFactory, DatumAuthorityFactory, CoordinateOperationAuthorityFactory
Wraps all factories in a
"http://www.opengis.net/" name space. An exemple
of complete URL is "http://www.opengis.net/gml/srs/epsg.xml#4326".
Implementation note: this class requires some cooperation from the ManyAuthoritiesFactory.getSeparator(java.lang.String)
method, since the separator is not the usual ':' character.
- Author:
- Martin Desruisseaux
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe base URL, which is "http://www.opengis.net/gml/srs/".Fields inherited from class ReferencingFactory
LOGGERFields inherited from class AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority -
Constructor Summary
ConstructorsConstructorDescriptionCreates a default wrapper.Creates a wrapper around the specified factory.HTTP_AuthorityFactory(Hints userHints) Creates a wrapper using the specified hints. -
Method Summary
Modifier and TypeMethodDescriptionReturns the authority, which contains the"http://www.opengis.net"identifier.protected StringtoBackingFactoryCode(String code) Removes the URL base ("http://www.opengis.net/gml/srs/") from the specified code before to pass it to the wrapped factories.Methods inherited from class AuthorityFactoryAdapter
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, getAuthorityFactory, getBackingStoreDescription, getCoordinateOperationAuthorityFactory, getCRSAuthorityFactory, getCSAuthorityFactory, getDatumAuthorityFactory, getDescriptionText, getIdentifiedObjectFinder, getVendor, isAvailable, notifySuccessMethods inherited from class AbstractAuthorityFactory
noSuchAuthorityCode, trimAuthorityMethods inherited from class ReferencingFactory
ensureNonNullMethods inherited from class AbstractFactory
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toStringMethods inherited from interface AuthorityFactory
createObject, getAuthorityCodes, getDescriptionTextMethods inherited from interface CoordinateOperationAuthorityFactory
createCoordinateOperation, createFromCoordinateReferenceSystemCodesMethods inherited from interface CRSAuthorityFactory
createCompoundCRS, createCoordinateReferenceSystem, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRSMethods inherited from interface CSAuthorityFactory
createCartesianCS, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createEllipsoidalCS, createPolarCS, createSphericalCS, createTimeCS, createUnit, createVerticalCSMethods inherited from interface DatumAuthorityFactory
createDatum, createEllipsoid, createEngineeringDatum, createGeodeticDatum, createImageDatum, createPrimeMeridian, createTemporalDatum, createVerticalDatumMethods inherited from interface Factory
getImplementationHints
-
Field Details
-
BASE_URL
The base URL, which is "http://www.opengis.net/gml/srs/".- See Also:
-
-
Constructor Details
-
HTTP_AuthorityFactory
public HTTP_AuthorityFactory()Creates a default wrapper. -
HTTP_AuthorityFactory
Creates a wrapper using the specified hints. For strict compliance with OGC definition of CRS defined by URL, the supplied hints should contains at least theFORCE_LONGITUDE_FIRST_AXIS_ORDERhint with valueFALSE.- Parameters:
userHints- The hints to be given to backing factories.
-
HTTP_AuthorityFactory
Creates a wrapper around the specified factory. The supplied factory is given unchanged to the super class constructor.
-
-
Method Details
-
getAuthority
Returns the authority, which contains the"http://www.opengis.net"identifier.- Specified by:
getAuthorityin interfaceAuthorityFactory- Overrides:
getAuthorityin classAuthorityFactoryAdapter- Returns:
- The organization reponsible for definition of the database.
-
toBackingFactoryCode
Removes the URL base ("http://www.opengis.net/gml/srs/") from the specified code before to pass it to the wrapped factories.- Overrides:
toBackingFactoryCodein classAuthorityFactoryAdapter- Parameters:
code- The code given to this factory.- Returns:
- The code to give to the underlying factories.
- Throws:
FactoryException- if the code can't be converted.
-