- All Superinterfaces:
AuthorityFactory,Factory
- All Known Implementing Classes:
PseudoEpsgFactory
Creates coordinate 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
CoordinateSystem, delegate tocreateCoordinateSystem(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 CartesianCScreateCartesianCS(String code) Returns a Cartesian coordinate system from a code.default CoordinateSystemcreateCoordinateSystem(String code) Returns an arbitrary coordinate system from a code.default CoordinateSystemAxisReturns a coordinate system axis from a code.default CylindricalCScreateCylindricalCS(String code) Returns a cylindrical coordinate system from a code.default EllipsoidalCScreateEllipsoidalCS(String code) Returns an ellipsoidal coordinate system from a code.default IdentifiedObjectcreateObject(String code) Deprecated, for removal: This API element is subject to removal in a future version.This method is ambiguous.default ParametricCScreateParametricCS(String code) Returns a parametric coordinate system from a code.default PolarCScreatePolarCS(String code) Returns a polar coordinate system from a code.default SphericalCScreateSphericalCS(String code) Returns a spherical coordinate system from a code.default TimeCScreateTimeCS(String code) Returns a temporal coordinate system from a code.default javax.measure.Unit<?> createUnit(String code) Returns an unit of measurement from a code.default VerticalCScreateVerticalCS(String code) Returns a vertical coordinate system from a code.Methods inherited from interface org.opengis.referencing.AuthorityFactory
getAuthority, getAuthorityCodes, getDescriptionText, getDescriptionText
-
Method Details
-
createUnit
@UML(identifier="CS_CoordinateSystemAuthorityFactory.createLinearUnit, createAngularUnit", specification=OGC_01009) default javax.measure.Unit<?> createUnit(String code) throws FactoryException Returns an unit of measurement from a code.- Parameters:
code- value allocated by authority.- Returns:
- the unit for the given code.
- Throws:
NoSuchAuthorityCodeException- if the specifiedcodewas not found.FactoryException- if the object creation failed for some other reason.
-
createCoordinateSystemAxis
Returns a coordinate system axis from a code.- Parameters:
code- value allocated by authority.- Returns:
- the axis for the given code.
- Throws:
NoSuchAuthorityCodeException- if the specifiedcodewas not found.FactoryException- if the object creation failed for some other reason.
-
createCoordinateSystem
Returns an arbitrary coordinate system from a code.If the coordinate 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
createCartesianCS(code)instead ofcreateCoordinateSystem(code)if the requested object is known to be aCartesianCSinstance.- Parameters:
code- value allocated by authority.- Returns:
- the coordinate system for the given code.
- Throws:
NoSuchAuthorityCodeException- if the specifiedcodewas not found.FactoryException- if the object creation failed for some other reason.
-
createCartesianCS
Returns a Cartesian coordinate system from a code.- Parameters:
code- value allocated by authority.- Returns:
- the coordinate system for the given code.
- Throws:
NoSuchAuthorityCodeException- if the specifiedcodewas not found.FactoryException- if the object creation failed for some other reason.
-
createPolarCS
Returns a polar coordinate system from a code.- Parameters:
code- value allocated by authority.- Returns:
- the coordinate system for the given code.
- Throws:
NoSuchAuthorityCodeException- if the specifiedcodewas not found.FactoryException- if the object creation failed for some other reason.
-
createCylindricalCS
Returns a cylindrical coordinate system from a code.- Parameters:
code- value allocated by authority.- Returns:
- the coordinate system for the given code.
- Throws:
NoSuchAuthorityCodeException- if the specifiedcodewas not found.FactoryException- if the object creation failed for some other reason.
-
createSphericalCS
Returns a spherical coordinate system from a code.- Parameters:
code- value allocated by authority.- Returns:
- the coordinate system for the given code.
- Throws:
NoSuchAuthorityCodeException- if the specifiedcodewas not found.FactoryException- if the object creation failed for some other reason.
-
createEllipsoidalCS
Returns an ellipsoidal coordinate system from a code.- Parameters:
code- value allocated by authority.- Returns:
- the coordinate system for the given code.
- Throws:
NoSuchAuthorityCodeException- if the specifiedcodewas not found.FactoryException- if the object creation failed for some other reason.
-
createVerticalCS
Returns a vertical coordinate system from a code.- Parameters:
code- value allocated by authority.- Returns:
- the coordinate system for the given code.
- Throws:
NoSuchAuthorityCodeException- if the specifiedcodewas not found.FactoryException- if the object creation failed for some other reason.
-
createTimeCS
Returns a temporal coordinate system from a code.- Parameters:
code- value allocated by authority.- Returns:
- the coordinate system for the given code.
- Throws:
NoSuchAuthorityCodeException- if the specifiedcodewas not found.FactoryException- if the object creation failed for some other reason.
-
createParametricCS
Returns a parametric coordinate system from a code.- Parameters:
code- value allocated by authority.- Returns:
- the coordinate system for the given code.
- Throws:
NoSuchAuthorityCodeException- if the specifiedcodewas not found.FactoryException- if the object creation failed for some other reason.
-
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. UsecreateCoordinateSystem(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:
-