- 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
UnimplementedServiceExceptionwith a message saying that the type or service is not supported.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompoundCRScreateCompoundCRS(String code) Returns a 3D coordinate reference system from a code.default CoordinateReferenceSystemReturns an arbitrary coordinate reference system from a code.default DerivedCRScreateDerivedCRS(String code) Returns a derived coordinate reference system from a code.default EngineeringCRScreateEngineeringCRS(String code) Returns a engineering coordinate reference system from a code.default GeocentricCRScreateGeocentricCRS(String code) Deprecated.default GeodeticCRScreateGeodeticCRS(String code) Returns a geodetic coordinate reference system from a code.default GeographicCRScreateGeographicCRS(String code) Returns a geographic coordinate reference system from a code.default ImageCRScreateImageCRS(String code) Deprecated.ImageCRSis replaced byEngineeringCRSas of ISO 19111:2019.default IdentifiedObjectcreateObject(String code) Deprecated, for removal: This API element is subject to removal in a future version.This method is ambiguous.default ParametricCRScreateParametricCRS(String code) Returns a parametric coordinate reference system from a code.default ProjectedCRScreateProjectedCRS(String code) Returns a projected coordinate reference system from a code.default TemporalCRScreateTemporalCRS(String code) Returns a temporal coordinate reference system from a code.default VerticalCRScreateVerticalCRS(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 aGeographicCRSinstance.- Parameters:
code- value allocated by authority.- Returns:
- the coordinate reference system for the given code.
- Throws:
NoSuchAuthorityCodeException- if the specifiedcodewas 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 specifiedcodewas 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.TheGeocentricCRStype 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 specifiedcodewas 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 specifiedcodewas 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 specifiedcodewas 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 specifiedcodewas 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 specifiedcodewas 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 specifiedcodewas 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 specifiedcodewas not found.FactoryException- if the object creation failed for some other reason.
-
createImageCRS
Deprecated.ImageCRSis replaced byEngineeringCRSas 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 specifiedcodewas 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 specifiedcodewas 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 specifiedcodewas 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:
createObjectin interfaceAuthorityFactory- Parameters:
code- value allocated by authority.- Returns:
- the object for the given code.
- Throws:
NoSuchAuthorityCodeException- if the specifiedcodewas not found.FactoryException- if the object creation failed for some other reason.- See Also:
-
GeocentricCRStype has been removed since ISO 19111:2007.