Enum Class Srid.CrsType

java.lang.Object
java.lang.Enum<Srid.CrsType>
io.micronaut.data.annotation.Srid.CrsType
All Implemented Interfaces:
Serializable, Comparable<Srid.CrsType>, Constable
Enclosing class:
Srid

public static enum Srid.CrsType extends Enum<Srid.CrsType>
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
  • Enum Constant Details

    • GEOGRAPHIC

      public static final Srid.CrsType GEOGRAPHIC
      Geographic coordinate reference system. Use when distance predicates should account for earth-surface distance, for example longitude/latitude SRIDs.
    • PROJECTED

      public static final Srid.CrsType PROJECTED
      Projected coordinate reference system. This is the default and keeps distance predicates in planar coordinate-system units.
  • Method Details

    • values

      public static Srid.CrsType[] 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

      public static Srid.CrsType valueOf(String name)
      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 name
      NullPointerException - if the argument is null