Enum Class Srid.CrsType
- All Implemented Interfaces:
Serializable, Comparable<Srid.CrsType>, Constable
- Enclosing class:
Srid
The coordinate reference system type.
This distinguishes projected coordinate systems, where distances are calculated in planar coordinate-system
units, from geographic coordinate systems, where coordinates describe positions on the earth and distance
predicates should use spherical distance functions when available. Micronaut Data uses this metadata during SQL
query generation for geospatial distance predicates such as near. Currently, this distinction is applied
for the MySQL and H2 dialects.
- Since:
- 5.0.4
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGeographic coordinate reference system.Projected coordinate reference system. -
Method Summary
Modifier and TypeMethodDescriptionstatic Srid.CrsTypeReturns the enum constant of this class with the specified name.static Srid.CrsType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GEOGRAPHIC
Geographic coordinate reference system. Use when distance predicates should account for earth-surface distance, for example longitude/latitude SRIDs. -
PROJECTED
Projected coordinate reference system. This is the default and keeps distance predicates in planar coordinate-system units.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-