Package org.geotools.referencing.factory
Class OrderedAxisAuthorityFactory
- All Implemented Interfaces:
Comparator<CoordinateSystemAxis>,AuthorityFactory,CRSAuthorityFactory,CSAuthorityFactory,Factory,Factory,OptionalFactory,RegistrableFactory
public class OrderedAxisAuthorityFactory
extends OrderedAxisCRSAuthorityFactory
implements CSAuthorityFactory
An authority factory which delegates all the work to an other factory, and reorder the axis in some pre-determined
order. This factory is mostly used by application expecting geographic coordinates in (longitude,
latitude) order, while most geographic CRS specified in the EPSG
database use the opposite axis order.
See OrderedAxisCRSAuthorityFactory for details. This class also implements CSAuthorityFactory
-
Field Summary
Fields inherited from class OrderedAxisCRSAuthorityFactory
directionRanks, forceStandardDirections, forceStandardUnitsFields inherited from class ReferencingFactory
LOGGERFields inherited from class AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority -
Constructor Summary
ConstructorsConstructorDescriptionOrderedAxisAuthorityFactory(String authority, Hints userHints, AxisDirection... axisOrder) Creates a factory which will reorder the axis of all objects created by the default authority factories.OrderedAxisAuthorityFactory(AbstractAuthorityFactory factory, Hints userHints, AxisDirection... axisOrder) Creates a factory which will reorder the axis of all objects created by the supplied factory. -
Method Summary
Methods inherited from class OrderedAxisCRSAuthorityFactory
booleanValue, compare, completeHints, computeDirectionRanks, replace, replaceMethods inherited from class TransformedAuthorityFactory
createFromCoordinateReferenceSystemCodes, dispose, getPriority, replace, replace, replace, replace, replaceMethods inherited from class AuthorityFactoryAdapter
createCartesianCS, createCompoundCRS, createCoordinateOperation, createCoordinateReferenceSystem, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createDerivedCRS, createEllipsoid, createEllipsoidalCS, createEngineeringCRS, createEngineeringDatum, createExtent, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createObject, createOperationMethod, createParameterDescriptor, createPolarCS, createPrimeMeridian, createProjectedCRS, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createUnit, createVerticalCRS, createVerticalCS, createVerticalDatum, getAuthority, getAuthorityCodes, getAuthorityFactory, getBackingStoreDescription, getCoordinateOperationAuthorityFactory, getCRSAuthorityFactory, getCSAuthorityFactory, getDatumAuthorityFactory, getDescriptionText, getIdentifiedObjectFinder, getVendor, isAvailable, notifySuccess, toBackingFactoryCodeMethods inherited from class AbstractAuthorityFactory
noSuchAuthorityCode, trimAuthorityMethods inherited from class ReferencingFactory
ensureNonNullMethods inherited from class AbstractFactory
addImplementationHints, equals, getImplementationHints, hashCode, onDeregistration, onRegistration, toStringMethods inherited from interface AuthorityFactory
createObject, getAuthority, getAuthorityCodes, getDescriptionTextMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods 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 Factory
getImplementationHints
-
Constructor Details
-
OrderedAxisAuthorityFactory
public OrderedAxisAuthorityFactory(String authority, Hints userHints, AxisDirection... axisOrder) throws FactoryRegistryException, IllegalArgumentException Creates a factory which will reorder the axis of all objects created by the default authority factories. The factories are fetched usingReferencingFactoryFinder. This constructor accepts the following hints:Hints.FORCE_STANDARD_AXIS_UNITSHints.FORCE_STANDARD_AXIS_DIRECTIONS- All hints understood by
ReferencingFactoryFinder
- Parameters:
authority- The authority to wraps (example:"EPSG"). Ifnull, then all authority factories must be explicitly specified in the set of hints.userHints- An optional set of hints, ornullif none.axisOrder- An array of axis directions that determine the axis order wanted, ornullfor the default axis order.- Throws:
FactoryRegistryException- if at least one factory can not be obtained.IllegalArgumentException- If at least two axis directions are colinear.- Since:
- 2.3
-
OrderedAxisAuthorityFactory
public OrderedAxisAuthorityFactory(AbstractAuthorityFactory factory, Hints userHints, AxisDirection... axisOrder) throws IllegalArgumentException Creates a factory which will reorder the axis of all objects created by the supplied factory. This constructor accepts the following optional hints:- Parameters:
factory- The factory that produces objects using arbitrary axis order.userHints- An optional set of hints, ornullif none.axisOrder- An array of axis directions that determine the axis order wanted, ornullfor the default axis order.- Throws:
IllegalArgumentException- If at least two axis directions are colinear.- Since:
- 2.3
-