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 String
The base URL, which is "http://www.opengis.net/gml/srs/".Fields inherited from class ReferencingFactory
LOGGER
Fields 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 String
toBackingFactoryCode
(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, notifySuccess
Methods inherited from class AbstractAuthorityFactory
noSuchAuthorityCode, trimAuthority
Methods inherited from class ReferencingFactory
ensureNonNull
Methods inherited from class AbstractFactory
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString
Methods inherited from interface AuthorityFactory
createObject, getAuthorityCodes, getDescriptionText
Methods inherited from interface CoordinateOperationAuthorityFactory
createCoordinateOperation, createFromCoordinateReferenceSystemCodes
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 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_ORDER
hint 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:
getAuthority
in interfaceAuthorityFactory
- Overrides:
getAuthority
in 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:
toBackingFactoryCode
in 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.
-