public class PropertyAuthorityFactory extends DirectAuthorityFactory implements CRSAuthorityFactory, CSAuthorityFactory, DatumAuthorityFactory
This factory doesn't cache any result. Any call to a createFoo method will trig a new
WKT parsing. For caching, this factory should be wrapped in some buffered factory like BufferedAuthorityFactory.
factoriesLOGGERhints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority| Constructor and Description |
|---|
PropertyAuthorityFactory(ReferencingFactoryContainer factories,
Citation[] authorities,
URL definitions)
Creates a factory for the specified authorities from the specified file.
|
PropertyAuthorityFactory(ReferencingFactoryContainer factories,
Citation authority,
URL definitions)
Creates a factory for the specified authority from the specified file.
|
| Modifier and Type | Method and Description |
|---|---|
CoordinateReferenceSystem |
createCoordinateReferenceSystem(String code)
Returns a coordinate reference system from a code.
|
IdentifiedObject |
createObject(String code)
Returns an arbitrary object from a code.
|
Citation |
getAuthority()
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.
|
InternationalString |
getDescriptionText(String code)
Gets a description of the object corresponding to a code.
|
String |
getWKT(String code)
Returns the Well Know Text from a code.
|
protected String |
trimAuthority(String code)
Trims the authority scope, if present.
|
getImplementationHintscreateCartesianCS, createCompoundCRS, createCoordinateOperation, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createDerivedCRS, createEllipsoid, createEllipsoidalCS, createEngineeringCRS, createEngineeringDatum, createExtent, createFromCoordinateReferenceSystemCodes, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createOperationMethod, createParameterDescriptor, createPolarCS, createPrimeMeridian, createProjectedCRS, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createUnit, createVerticalCRS, createVerticalCS, createVerticalDatum, dispose, getBackingStoreDescription, getIdentifiedObjectFinder, noSuchAuthorityCodeensureNonNull, getVendoraddImplementationHints, equals, getPriority, hashCode, onDeregistration, onRegistration, toStringcreateCompoundCRS, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRScreateCartesianCS, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createEllipsoidalCS, createPolarCS, createSphericalCS, createTimeCS, createUnit, createVerticalCScreateDatum, createEllipsoid, createEngineeringDatum, createGeodeticDatum, createImageDatum, createPrimeMeridian, createTemporalDatum, createVerticalDatumpublic PropertyAuthorityFactory(ReferencingFactoryContainer factories, Citation authority, URL definitions) throws IOException
factories - The underlying factories used for objects creation.authority - The organization or party responsible for definition and maintenance of the
database.definitions - URL to the definition file.IOException - if the definitions can't be read.public PropertyAuthorityFactory(ReferencingFactoryContainer factories, Citation[] authorities, URL definitions) throws IOException
"ESRI" namespace, but also the "EPSG" namespace because those CRS are used as extension of the EPSG database. Concequently,
the same CRS can be identified as "ESRI:53001" and "EPSG:53001", where "53001" is a unused code in the official EPSG database.factories - The underlying factories used for objects creation.authorities - The organizations or party responsible for definition and maintenance of
the database.definitions - URL to the definition file.IOException - if the definitions can't be read.public Citation getAuthority()
getAuthority in interface AuthorityFactorygetAuthority in class AbstractAuthorityFactorypublic Set<String> getAuthorityCodes(Class<? extends IdentifiedObject> type) throws FactoryException
CoordinateReferenceSystem.class asks for all authority codes accepted by createGeographicCRS, createProjectedCRS, createVerticalCRS, createTemporalCRS and their friends.
ProjectedCRS.class asks only for authority codes accepted by createProjectedCRS.
"PROJCS" and "GEOGCS" at the start of the WKT strings.getAuthorityCodes in interface AuthorityFactorytype - The spatial reference objects type (may be Object.class).FactoryException - if access to the underlying database failed.public String getWKT(String code) throws NoSuchAuthorityCodeException
code - Value allocated by authority.NoSuchAuthorityCodeException - if the specified code was not found.public InternationalString getDescriptionText(String code) throws NoSuchAuthorityCodeException, FactoryException
getDescriptionText in interface AuthorityFactorycode - Value allocated by authority.null if the object corresponding to the
specified code has no description.NoSuchAuthorityCodeException - if the specified code was not found.FactoryException - if the query failed for some other reason.public IdentifiedObject createObject(String code) throws NoSuchAuthorityCodeException, FactoryException
createObject in interface AuthorityFactorycreateObject in class AbstractAuthorityFactorycode - Value allocated by authority.NoSuchAuthorityCodeException - if the specified code was not found.FactoryException - if the object creation failed for some other reason.AbstractAuthorityFactory.createCoordinateReferenceSystem(java.lang.String),
AbstractAuthorityFactory.createDatum(java.lang.String),
AbstractAuthorityFactory.createEllipsoid(java.lang.String),
AbstractAuthorityFactory.createUnit(java.lang.String)public CoordinateReferenceSystem createCoordinateReferenceSystem(String code) throws NoSuchAuthorityCodeException, FactoryException
createCoordinateReferenceSystem in interface CRSAuthorityFactorycreateCoordinateReferenceSystem in class AbstractAuthorityFactorycode - Value allocated by authority.NoSuchAuthorityCodeException - if the specified code was not found.FactoryException - if the object creation failed for some other reason.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)protected String trimAuthority(String code)
trimAuthority in class AbstractAuthorityFactorycode - The code to trim.Copyright © 1996–2019 Geotools. All rights reserved.