- All Superinterfaces:
AuthorityFactory
,Factory
- All Known Implementing Classes:
PseudoEpsgFactory
@UML(identifier="CS_CoordinateSystemAuthorityFactory",
specification=OGC_01009)
public interface CRSAuthorityFactory
extends AuthorityFactory
Creates coordinate reference systems 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
CoordinateReferenceSystem
, delegate tocreateCoordinateReferenceSystem(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 CompoundCRS
createCompoundCRS
(String code) Returns a 3D coordinate reference system from a code.default CoordinateReferenceSystem
Returns an arbitrary coordinate reference system from a code.default DerivedCRS
createDerivedCRS
(String code) Returns a derived coordinate reference system from a code.default EngineeringCRS
createEngineeringCRS
(String code) Returns a engineering coordinate reference system from a code.default GeocentricCRS
createGeocentricCRS
(String code) Deprecated.default GeodeticCRS
createGeodeticCRS
(String code) Returns a geodetic coordinate reference system from a code.default GeographicCRS
createGeographicCRS
(String code) Returns a geographic coordinate reference system from a code.default ImageCRS
createImageCRS
(String code) Deprecated.ImageCRS
is replaced byEngineeringCRS
as of ISO 19111:2019.default IdentifiedObject
createObject
(String code) Deprecated, for removal: This API element is subject to removal in a future version.This method is ambiguous.default ParametricCRS
createParametricCRS
(String code) Returns a parametric coordinate reference system from a code.default ProjectedCRS
createProjectedCRS
(String code) Returns a projected coordinate reference system from a code.default TemporalCRS
createTemporalCRS
(String code) Returns a temporal coordinate reference system from a code.default VerticalCRS
createVerticalCRS
(String code) Returns a vertical coordinate reference system from a code.Methods inherited from interface org.opengis.referencing.AuthorityFactory
getAuthority, getAuthorityCodes, getDescriptionText, getDescriptionText
-
Method Details
-
createCoordinateReferenceSystem
@UML(identifier="createHorizontalCoordinateSystem", specification=OGC_01009) default CoordinateReferenceSystem createCoordinateReferenceSystem(String code) throws FactoryException Returns an arbitrary coordinate reference system from a code.If the coordinate reference system 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
createGeographicCRS(code)
instead ofcreateCoordinateReferenceSystem(code)
if the requested object is known to be aGeographicCRS
instance.- Parameters:
code
- value allocated by authority.- Returns:
- the coordinate reference system for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.- See Also:
-
createGeographicCRS
@UML(identifier="createGeographicCoordinateSystem", specification=OGC_01009) default GeographicCRS createGeographicCRS(String code) throws FactoryException Returns a geographic coordinate reference system from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the coordinate reference system for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.- See Also:
-
createGeocentricCRS
@Deprecated(since="3.1") default GeocentricCRS createGeocentricCRS(String code) throws FactoryException Deprecated.TheGeocentricCRS
type has been removed since ISO 19111:2007. UsecreateGeodeticCRS(String)
instead.Returns a geocentric coordinate reference system from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the coordinate reference system for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed.- See Also:
-
createGeodeticCRS
Returns a geodetic coordinate reference system from a code. A geodetic CRS can be geographic or geocentric.- Parameters:
code
- value allocated by authority.- Returns:
- the coordinate reference system for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed.- Since:
- 3.1
- See Also:
-
createVerticalCRS
@UML(identifier="createVerticalCoordinateSystem", specification=OGC_01009) default VerticalCRS createVerticalCRS(String code) throws FactoryException Returns a vertical coordinate reference system from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the coordinate reference system for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.- See Also:
-
createTemporalCRS
Returns a temporal coordinate reference system from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the coordinate reference system for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.- See Also:
-
createParametricCRS
Returns a parametric coordinate reference system from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the coordinate reference system for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.- Since:
- 3.1
- See Also:
-
createCompoundCRS
@UML(identifier="createCompoundCoordinateSystem", specification=OGC_01009) default CompoundCRS createCompoundCRS(String code) throws FactoryException Returns a 3D coordinate reference system from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the coordinate reference system for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.
-
createEngineeringCRS
Returns a engineering coordinate reference system from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the coordinate reference system for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.
-
createImageCRS
Deprecated.ImageCRS
is replaced byEngineeringCRS
as of ISO 19111:2019.Returns a image coordinate reference system from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the coordinate reference system for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.
-
createDerivedCRS
Returns a derived coordinate reference system from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the coordinate reference system for the given code.
- Throws:
NoSuchAuthorityCodeException
- if the specifiedcode
was not found.FactoryException
- if the object creation failed for some other reason.
-
createProjectedCRS
@UML(identifier="createProjectedCoordinateSystem", specification=OGC_01009) default ProjectedCRS createProjectedCRS(String code) throws FactoryException Returns a projected coordinate reference system from a code.- Parameters:
code
- value allocated by authority.- Returns:
- the coordinate reference system 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. UsecreateCoordinateReferenceSystem(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:
-
GeocentricCRS
type has been removed since ISO 19111:2007.