org.geotools.referencing.factory.epsg
Class LongitudeFirstFactory

java.lang.Object
  extended by org.geotools.factory.AbstractFactory
      extended by org.geotools.referencing.factory.ReferencingFactory
          extended by org.geotools.referencing.factory.AbstractAuthorityFactory
              extended by org.geotools.referencing.factory.BufferedAuthorityFactory
                  extended by org.geotools.referencing.factory.DeferredAuthorityFactory
                      extended by org.geotools.referencing.factory.epsg.LongitudeFirstFactory
All Implemented Interfaces:
javax.imageio.spi.RegisterableService, BufferedFactory, Factory, OptionalFactory, org.opengis.referencing.AuthorityFactory, org.opengis.referencing.crs.CRSAuthorityFactory, org.opengis.referencing.cs.CSAuthorityFactory, org.opengis.referencing.datum.DatumAuthorityFactory, org.opengis.referencing.operation.CoordinateOperationAuthorityFactory

public class LongitudeFirstFactory
extends DeferredAuthorityFactory
implements org.opengis.referencing.crs.CRSAuthorityFactory, org.opengis.referencing.cs.CSAuthorityFactory, org.opengis.referencing.operation.CoordinateOperationAuthorityFactory, org.opengis.referencing.datum.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
Version:
$Id: LongitudeFirstFactory.java 31994 2008-12-10 16:06:18Z aaime $
Author:
Martin Desruisseaux
See Also:
OrderedAxisAuthorityFactory, Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER

Field Summary
static java.lang.String SYSTEM_DEFAULT_KEY
          Deprecated. Moved to GeoTools.FORCE_LONGITUDE_FIRST_AXIS_ORDER.
 
Fields inherited from class org.geotools.referencing.factory.ReferencingFactory
LOGGER
 
Fields inherited from class org.geotools.factory.AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
 
Constructor Summary
LongitudeFirstFactory()
          Creates a default factory.
LongitudeFirstFactory(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.
 org.opengis.metadata.citation.Citation getAuthority()
          Returns the authority for this EPSG database.
 
Methods inherited from class org.geotools.referencing.factory.DeferredAuthorityFactory
canDisposeBackingStore, dispose, exit, isAvailable, isConnected, setTimeout
 
Methods inherited from class org.geotools.referencing.factory.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 org.geotools.referencing.factory.AbstractAuthorityFactory
noSuchAuthorityCode, trimAuthority
 
Methods inherited from class org.geotools.referencing.factory.ReferencingFactory
ensureNonNull
 
Methods inherited from class org.geotools.factory.AbstractFactory
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.referencing.crs.CRSAuthorityFactory
createCompoundCRS, createCoordinateReferenceSystem, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRS
 
Methods inherited from interface org.opengis.referencing.cs.CSAuthorityFactory
createCartesianCS, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createEllipsoidalCS, createPolarCS, createSphericalCS, createTimeCS, createUnit, createVerticalCS
 
Methods inherited from interface org.opengis.referencing.operation.CoordinateOperationAuthorityFactory
createCoordinateOperation, createFromCoordinateReferenceSystemCodes
 
Methods inherited from interface org.opengis.referencing.datum.DatumAuthorityFactory
createDatum, createEllipsoid, createEngineeringDatum, createGeodeticDatum, createImageDatum, createPrimeMeridian, createTemporalDatum, createVerticalDatum
 
Methods inherited from interface org.opengis.referencing.AuthorityFactory
createObject, getAuthorityCodes, getDescriptionText
 
Methods inherited from interface org.opengis.referencing.Factory
getVendor
 
Methods inherited from interface org.geotools.factory.Factory
getImplementationHints
 

Field Detail

SYSTEM_DEFAULT_KEY

public static final java.lang.String SYSTEM_DEFAULT_KEY
Deprecated. Moved to GeoTools.FORCE_LONGITUDE_FIRST_AXIS_ORDER.
The system property key for setting the default FORCE_LONGITUDE_FIRST_AXIS_ORDER hint value. This setting can provide a transition path for projects expecting a (longitude, latitude) axis order on a system-wide level. Application developpers can set the default value as below:
 System.setProperty(SYSTEM_DEFAULT_KEY, "true");
 
Note that this system property applies mostly to the default EPSG factory. Most other factories ("CRS", "AUTO", etc.) don't need this property since they use (longitude, latitude) axis order by design.

See Also:
Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Constant Field Values
Constructor Detail

LongitudeFirstFactory

public LongitudeFirstFactory()
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.


LongitudeFirstFactory

public LongitudeFirstFactory(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 org.opengis.metadata.citation.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 org.opengis.referencing.AuthorityFactory
Overrides:
getAuthority in class BufferedAuthorityFactory

createBackingStore

protected AbstractAuthorityFactory createBackingStore()
                                               throws org.opengis.referencing.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:
org.opengis.referencing.FactoryException - If no suitable factory instance was found.


Copyright © 1996-2010 Geotools. All Rights Reserved.