Class LongitudeFirstFactory
- All Implemented Interfaces:
AuthorityFactory,CRSAuthorityFactory,CSAuthorityFactory,DatumAuthorityFactory,Factory,CoordinateOperationAuthorityFactory,BufferedFactory,Factory,OptionalFactory,RegistrableFactory
public class LongitudeFirstFactory
extends DeferredAuthorityFactory
implements CRSAuthorityFactory, CSAuthorityFactory, CoordinateOperationAuthorityFactory, DatumAuthorityFactory
An EPSG authority factory using (longitude, latitude) axis order. This factory wraps a
ThreadedEpsgFactory into an OrderedAxisAuthorityFactory when first needed.
Users don't need to create explicitly an instance of this class. Instead, one can get an instance using the following code:
Hints hints = new Hints(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE); CRSAuthorityFactory factory = ReferencingFactoryFinder.getCRSAuthorityFactory("EPSG", hints);
- Since:
- 2.3
- Author:
- Martin Desruisseaux
- See Also:
-
Field Summary
Fields inherited from class ReferencingFactory
LOGGERFields inherited from class AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority -
Constructor Summary
ConstructorsConstructorDescriptionCreates a default factory.LongitudeFirstFactory(Hints userHints) Creates a factory from the specified set of hints. -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractAuthorityFactoryReturns the factory instance (usuallyThreadedEpsgFactory) to be used as the backing store.Returns the authority for this EPSG database.Methods inherited from class DeferredAuthorityFactory
canDisposeBackingStore, dispose, disposeBackingStore, exit, getBackingStore, isAvailable, isConnected, setTimeoutMethods inherited from class BufferedAuthorityFactory
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, getAuthorityCodes, getBackingStoreDescription, getDescriptionText, getIdentifiedObjectFinder, getVendorMethods 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
-
Constructor Details
-
LongitudeFirstFactory
public LongitudeFirstFactory()Creates a default factory. TheFORCE_LONGITUDE_FIRST_AXIS_ORDERhint is always set toTRUE. TheFORCE_STANDARD_AXIS_DIRECTIONSandFORCE_STANDARD_AXIS_UNITShints are set toFALSEby default. A different value for those two hints can be specified using the constructor below. -
LongitudeFirstFactory
Creates a factory from the specified set of hints.- Parameters:
userHints- An optional set of hints, ornullfor the default values.
-
-
Method Details
-
getAuthority
Returns the authority for this EPSG database. This authority will contains the database version in the edition attribute, together with the edition date.- Specified by:
getAuthorityin interfaceAuthorityFactory- Overrides:
getAuthorityin classBufferedAuthorityFactory- Returns:
- The organization reponsible for definition of the database.
-
createBackingStore
Returns the factory instance (usuallyThreadedEpsgFactory) to be used as the backing store.- Specified by:
createBackingStorein classDeferredAuthorityFactory- Returns:
- The backing store to uses in
createXXX(...)methods. - Throws:
FactoryException- If no suitable factory instance was found.
-