Class CartesianAuthorityFactory
- Object
- 
- AbstractFactory
- 
- ReferencingFactory
- 
- AbstractAuthorityFactory
- 
- DirectAuthorityFactory
- 
- CartesianAuthorityFactory
 
 
 
 
 
- 
- All Implemented Interfaces:
- AuthorityFactory,- CRSAuthorityFactory,- Factory,- Factory,- RegistrableFactory
 
 public class CartesianAuthorityFactory extends DirectAuthorityFactory implements CRSAuthorityFactory A factory providing a EPSG code for a cartesian engineering systems- Author:
- Andrea Aime - GeoSolutions
 
- 
- 
Field SummaryFields Modifier and Type Field Description static DefaultEngineeringCRSGENERIC_2DA clone ofDefaultEngineeringCRS.GENERIC_2Dwith the proper authority namestatic StringGENERIC_2D_CODE- 
Fields inherited from class DirectAuthorityFactoryfactories
 - 
Fields inherited from class ReferencingFactoryLOGGER
 - 
Fields inherited from class AbstractFactoryhints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
 
- 
 - 
Constructor SummaryConstructors Constructor Description CartesianAuthorityFactory()CartesianAuthorityFactory(Hints hints)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CoordinateReferenceSystemcreateCoordinateReferenceSystem(String code)Creates a coordinate reference system from the specified code.EngineeringCRScreateEngineeringCRS(String code)Creates a engineering coordinate reference system from a code.IdentifiedObjectcreateObject(String code)Creates an object from the specified code.CitationgetAuthority()Returns the organization or party responsible for definition and maintenance of the database.Set<String>getAuthorityCodes(Class<? extends IdentifiedObject> type)Returns the set of authority codes of the given type.InternationalStringgetDescriptionText(String code)Gets a description of the object corresponding to a code.- 
Methods inherited from class DirectAuthorityFactorygetImplementationHints
 - 
Methods inherited from class AbstractAuthorityFactorycreateCartesianCS, createCompoundCRS, createCoordinateOperation, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createDerivedCRS, createEllipsoid, createEllipsoidalCS, createEngineeringDatum, createExtent, createFromCoordinateReferenceSystemCodes, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createOperationMethod, createParameterDescriptor, createPolarCS, createPrimeMeridian, createProjectedCRS, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createUnit, createVerticalCRS, createVerticalCS, createVerticalDatum, dispose, getBackingStoreDescription, getIdentifiedObjectFinder, noSuchAuthorityCode, trimAuthority
 - 
Methods inherited from class ReferencingFactoryensureNonNull, getVendor
 - 
Methods inherited from class AbstractFactoryaddImplementationHints, equals, getPriority, hashCode, onDeregistration, onRegistration, toString
 - 
Methods inherited from interface CRSAuthorityFactorycreateCompoundCRS, createDerivedCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRS
 
- 
 
- 
- 
- 
Field Detail- 
GENERIC_2D_CODEpublic static final String GENERIC_2D_CODE - See Also:
- Constant Field Values
 
 - 
GENERIC_2Dpublic static final DefaultEngineeringCRS GENERIC_2D A clone ofDefaultEngineeringCRS.GENERIC_2Dwith the proper authority name
 
- 
 - 
Constructor Detail- 
CartesianAuthorityFactorypublic CartesianAuthorityFactory() 
 - 
CartesianAuthorityFactorypublic CartesianAuthorityFactory(Hints hints) 
 
- 
 - 
Method Detail- 
getAuthoritypublic Citation getAuthority() Description copied from class:AbstractAuthorityFactoryReturns the organization or party responsible for definition and maintenance of the database.- Specified by:
- getAuthorityin interface- AuthorityFactory
- Specified by:
- getAuthorityin class- AbstractAuthorityFactory
- Returns:
- The organization reponsible for definition of the database.
 
 - 
getAuthorityCodespublic Set<String> getAuthorityCodes(Class<? extends IdentifiedObject> type) throws FactoryException Description copied from interface:AuthorityFactoryReturns the set of authority codes of the given type. Thetypeargument specify the base class. For example if this factory is an instance ofCRSAuthorityFactory, then:- CoordinateReferenceSystem.classasks for all authority codes accepted by one of- createGeographicCRS,- createProjectedCRS,- createVerticalCRS,- createTemporalCRSand their friends.
- ProjectedCRS.classasks only for authority codes accepted by- createProjectedCRS.
 - Specified by:
- getAuthorityCodesin interface- AuthorityFactory
- Parameters:
- type- The spatial reference objects type.
- Returns:
- The set of authority codes for spatial reference objects of the given type. If this factory doesn't contains any object of the given type, then this method returns an empty set.
- Throws:
- FactoryException- if access to the underlying database failed.
 
 - 
getDescriptionTextpublic InternationalString getDescriptionText(String code) throws NoSuchAuthorityCodeException, FactoryException Description copied from interface:AuthorityFactoryGets a description of the object corresponding to a code.- Specified by:
- getDescriptionTextin interface- AuthorityFactory
- Parameters:
- code- Value allocated by authority.
- Returns:
- A description of the object, or nullif the object corresponding to the specifiedcodehas no description.
- Throws:
- NoSuchAuthorityCodeException- if the specified- codewas not found.
- FactoryException- if the query failed for some other reason.
 
 - 
createObjectpublic IdentifiedObject createObject(String code) throws FactoryException Creates an object from the specified code. The default implementation delegates tocreateCoordinateReferenceSystem(code).- Specified by:
- createObjectin interface- AuthorityFactory
- Overrides:
- createObjectin class- AbstractAuthorityFactory
- Parameters:
- code- Value allocated by authority.
- Returns:
- The object for the given code.
- Throws:
- NoSuchAuthorityCodeException- if the specified- codewas not found.
- FactoryException- if the object creation failed for some other reason.
- See Also:
- AbstractAuthorityFactory.createCoordinateReferenceSystem(java.lang.String),- AbstractAuthorityFactory.createDatum(java.lang.String),- AbstractAuthorityFactory.createEllipsoid(java.lang.String),- AbstractAuthorityFactory.createUnit(java.lang.String)
 
 - 
createCoordinateReferenceSystempublic CoordinateReferenceSystem createCoordinateReferenceSystem(String code) throws FactoryException Creates a coordinate reference system from the specified code. The default implementation delegates tocreateEngineeringCRS(String)(code).- Specified by:
- createCoordinateReferenceSystemin interface- CRSAuthorityFactory
- Overrides:
- createCoordinateReferenceSystemin class- AbstractAuthorityFactory
- Parameters:
- code- Value allocated by authority.
- Returns:
- The coordinate reference system for the given code.
- Throws:
- NoSuchAuthorityCodeException- if the specified- codewas not found.
- FactoryException- if the object creation failed for some other reason.
- See Also:
- AbstractAuthorityFactory.createGeographicCRS(java.lang.String),- AbstractAuthorityFactory.createProjectedCRS(java.lang.String),- AbstractAuthorityFactory.createVerticalCRS(java.lang.String),- AbstractAuthorityFactory.createTemporalCRS(java.lang.String),- AbstractAuthorityFactory.createCompoundCRS(java.lang.String)
 
 - 
createEngineeringCRSpublic EngineeringCRS createEngineeringCRS(String code) throws NoSuchAuthorityCodeException, FactoryException Description copied from class:AbstractAuthorityFactoryCreates a engineering coordinate reference system from a code.- Specified by:
- createEngineeringCRSin interface- CRSAuthorityFactory
- Overrides:
- createEngineeringCRSin class- AbstractAuthorityFactory
- Parameters:
- code- Value allocated by authority.
- Returns:
- The coordinate reference system for the given code.
- Throws:
- NoSuchAuthorityCodeException- if the specified- codewas not found.
- FactoryException- if the object creation failed for some other reason.
 
 
- 
 
-