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, forceStandardUnits
Fields inherited from class ReferencingFactory
LOGGER
Fields 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, replace
Methods inherited from class TransformedAuthorityFactory
createFromCoordinateReferenceSystemCodes, dispose, getPriority, replace, replace, replace, replace, replace
Methods 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, toBackingFactoryCode
Methods inherited from class AbstractAuthorityFactory
noSuchAuthorityCode, trimAuthority
Methods inherited from class ReferencingFactory
ensureNonNull
Methods inherited from class AbstractFactory
addImplementationHints, equals, getImplementationHints, hashCode, onDeregistration, onRegistration, toString
Methods inherited from interface AuthorityFactory
createObject, getAuthority, getAuthorityCodes, getDescriptionText
Methods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
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 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_UNITS
Hints.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, ornull
if none.axisOrder
- An array of axis directions that determine the axis order wanted, ornull
for 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, ornull
if none.axisOrder
- An array of axis directions that determine the axis order wanted, ornull
for the default axis order.- Throws:
IllegalArgumentException
- If at least two axis directions are colinear.- Since:
- 2.3
-