@UML(identifier="CS_CoordinateSystemAuthorityFactory", specification=OGC_01009) public interface AuthorityFactory extends Factory
Modifier and Type | Method and Description |
---|---|
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.
|
@UML(identifier="getAuthority", specification=OGC_01009) Citation getAuthority()
@Extension Set<String> getAuthorityCodes(Class<? extends IdentifiedObject> type) throws FactoryException
type
argument specify the
base class. For example if this factory is an instance of CRSAuthorityFactory
, then:
CoordinateReferenceSystem.class
asks for all authority codes accepted by one of createGeographicCRS
, createProjectedCRS
,
createVerticalCRS
, createTemporalCRS
and their friends.
ProjectedCRS.class
asks only for authority codes accepted by createProjectedCRS
.
type
- The spatial reference objects type.FactoryException
- if access to the underlying database failed.@UML(identifier="descriptionText", specification=OGC_01009) InternationalString getDescriptionText(String code) throws NoSuchAuthorityCodeException, FactoryException
code
- 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.@Extension IdentifiedObject createObject(String code) throws NoSuchAuthorityCodeException, FactoryException
Datum
, CoordinateSystem
, ReferenceSystem
or CoordinateOperation
. If the type of the object
is know at compile time, it is recommended to invoke the most precise method instead of this
one (for example
createCoordinateReferenceSystem(code)
instead of
createObject(code)
if the caller know he is asking for a coordinate reference system).code
- Value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DatumAuthorityFactory.createDatum(java.lang.String)
,
CRSAuthorityFactory.createCoordinateReferenceSystem(java.lang.String)
Copyright © 1996–2019 Geotools. All rights reserved.