- All Superinterfaces:
AuthorityFactory
,Factory
- All Known Implementing Classes:
PseudoEpsgFactory
@UML(identifier="CS_CoordinateSystemAuthorityFactory",
specification=OGC_01009)
public interface DatumAuthorityFactory
extends AuthorityFactory
Creates datum objects using authority codes.
External authorities are used to manage definitions of objects used in this interface.
The definitions of these objects are referenced using code strings.
A commonly used authority is the EPSG geodetic registry.
Default methods
Allcreate(…)
methods in this interface are optional.
If a method is not overridden by the implementer, the default is:
- For methods creating a sub-type of
Datum
, delegate tocreateDatum(String)
then check the returned object type. - For all other methods, throw an
UnimplementedServiceException
with a message saying that the type or service is not supported.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault Datum
createDatum
(String code) Returns an arbitrary datum from a code.default Ellipsoid
createEllipsoid
(String code) Returns an ellipsoid from a code.default EngineeringDatum
createEngineeringDatum
(String code) Returns a engineering datum from a code.default GeodeticDatum
createGeodeticDatum
(String code) Returns a geodetic reference frame from a code.default ImageDatum
createImageDatum
(String code) Deprecated.default IdentifiedObject
createObject
(String code) Deprecated, for removal: This API element is subject to removal in a future version.This method is ambiguous.default ParametricDatum
createParametricDatum
(String code) Returns a parametric datum from a code.default PrimeMeridian
createPrimeMeridian
(String code) Returns a prime meridian from a code.default TemporalDatum
createTemporalDatum
(String code) Returns a temporal datum from a code.default VerticalDatum
createVerticalDatum
(String code) Returns a vertical datum from a code.Methods inherited from interface org.opengis.referencing.AuthorityFactory
getAuthority, getAuthorityCodes, getDescriptionText, getDescriptionText
-
Method Details
-
createEllipsoid
@UML(identifier="createEllipsoid", specification=OGC_01009) default Ellipsoid createEllipsoid(String code) throws FactoryException Returns an ellipsoid from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the ellipsoid for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.- See Also:
-
createPrimeMeridian
@UML(identifier="createPrimeMeridian", specification=OGC_01009) default PrimeMeridian createPrimeMeridian(String code) throws FactoryException Returns a prime meridian from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the prime meridian for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.- See Also:
-
createDatum
Returns an arbitrary datum from a code.If the datum type is known at compile time, then it is recommended to invoke the most precise method instead of this one. For example, it is usually better to invoke
createGeodeticDatum(code)
instead ofcreateDatum(code)
if the requested object is known to be aGeodeticDatum
instance.- Parameters:
code
- value allocated by authority.- Returns:
- the datum for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.- See Also:
-
createGeodeticDatum
@UML(identifier="createHorizontalDatum", specification=OGC_01009) default GeodeticDatum createGeodeticDatum(String code) throws FactoryException Returns a geodetic reference frame from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the datum for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.- See Also:
-
createVerticalDatum
@UML(identifier="createVerticalDatum", specification=OGC_01009) default VerticalDatum createVerticalDatum(String code) throws FactoryException Returns a vertical datum from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the datum for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.- See Also:
-
createTemporalDatum
Returns a temporal datum from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the datum for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.- See Also:
-
createParametricDatum
Returns a parametric datum from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the datum for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.- See Also:
-
createEngineeringDatum
Returns a engineering datum from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the datum for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.- See Also:
-
createImageDatum
Deprecated.ImageDatum
is replaced byEngineeringDatum
as of ISO 19111:2019.Returns a image datum from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the datum for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.- See Also:
-
createObject
@Deprecated(since="3.1", forRemoval=true) default IdentifiedObject createObject(String code) throws FactoryException Deprecated, for removal: This API element is subject to removal in a future version.This method is ambiguous. UsecreateDatum(String)
instead.Returns an arbitrary object from a code.- Specified by:
createObject
in interfaceAuthorityFactory
- Parameters:
code
- value allocated by authority.- Returns:
- the object for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.- See Also:
-
ImageDatum
is replaced byEngineeringDatum
as of ISO 19111:2019.