org.geotools.referencing.factory.epsg
Class LongitudeFirstEpsgDecorator

Object
  extended by AbstractFactory
      extended by ReferencingFactory
          extended by AbstractAuthorityFactory
              extended by BufferedAuthorityFactory
                  extended by DeferredAuthorityFactory
                      extended by LongitudeFirstEpsgDecorator
All Implemented Interfaces:
RegisterableService, BufferedFactory, Factory, OptionalFactory, AuthorityFactory, CRSAuthorityFactory, CSAuthorityFactory, DatumAuthorityFactory, CoordinateOperationAuthorityFactory

public class LongitudeFirstEpsgDecorator
extends DeferredAuthorityFactory
implements CRSAuthorityFactory, CSAuthorityFactory, CoordinateOperationAuthorityFactory, DatumAuthorityFactory

An EPSG authority factory using (longitude, latitude) axis order. This factory wraps a AbstractEpsgMediator 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.5
Author:
Jody Garnett
See Also:
OrderedAxisAuthorityFactory, Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER
Tutorial:
The axis order issue

Field Summary
 
Fields inherited from class ReferencingFactory
LOGGER
 
Fields inherited from class AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
 
Constructor Summary
LongitudeFirstEpsgDecorator()
          Creates a default factory.
LongitudeFirstEpsgDecorator(Hints userHints)
          Creates a factory from the specified set of hints.
 
Method Summary
protected  AbstractAuthorityFactory createBackingStore()
          Returns the factory instance (usually ThreadedEpsgFactory) to be used as the backing store.
 Citation getAuthority()
          Returns the authority for this EPSG database.
 
Methods inherited from class DeferredAuthorityFactory
canDisposeBackingStore, dispose, disposeBackingStore, exit, getBackingStore, isAvailable, isConnected, setTimeout
 
Methods 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, getVendor
 
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 class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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 CoordinateOperationAuthorityFactory
createCoordinateOperation, createFromCoordinateReferenceSystemCodes
 
Methods inherited from interface DatumAuthorityFactory
createDatum, createEllipsoid, createEngineeringDatum, createGeodeticDatum, createImageDatum, createPrimeMeridian, createTemporalDatum, createVerticalDatum
 
Methods inherited from interface AuthorityFactory
createObject, getAuthorityCodes, getDescriptionText
 
Methods inherited from interface Factory
getVendor
 
Methods inherited from interface Factory
getImplementationHints
 

Constructor Detail

LongitudeFirstEpsgDecorator

public LongitudeFirstEpsgDecorator()
Creates a default factory. The FORCE_LONGITUDE_FIRST_AXIS_ORDER hint is always set to TRUE. The FORCE_STANDARD_AXIS_DIRECTIONS and FORCE_STANDARD_AXIS_UNITS hints are set to FALSE by default. A different value for those two hints can be specified using the constructor below.


LongitudeFirstEpsgDecorator

public LongitudeFirstEpsgDecorator(Hints userHints)
Creates a factory from the specified set of hints.

Parameters:
userHints - An optional set of hints, or null for the default values.
Method Detail

getAuthority

public Citation 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:
getAuthority in interface AuthorityFactory
Overrides:
getAuthority in class BufferedAuthorityFactory
Returns:
The organization reponsible for definition of the database.

createBackingStore

protected AbstractAuthorityFactory createBackingStore()
                                               throws FactoryException
Returns the factory instance (usually ThreadedEpsgFactory) to be used as the backing store.

Specified by:
createBackingStore in class DeferredAuthorityFactory
Returns:
The backing store to uses in createXXX(...) methods.
Throws:
FactoryException - If no suitable factory instance was found.


Copyright © 1996-2014 Geotools. All Rights Reserved.