Enum Class Model

java.lang.Object
java.lang.Enum<Model>
org.apache.tinkerpop.gremlin.structure.geo.Model
All Implemented Interfaces:
Serializable, Comparable<Model>, Constable

public enum Model extends Enum<Model>
Defines the coordinate interpretation model for a geometry.

CARTESIAN is planar, with math in coordinate units. TinkerPop defines it completely. GEOGRAPHIC is longitude/latitude on the earth (WGS84), with geodetic math in meters. OTHER describes data in any other coordinate system, such as a map projection.

OTHER is only ever reported by Geometry.model(). It is never passed to a constructor, because a geometry in another coordinate system is meaningless without knowing which one, and the SRID says exactly that.

Since:
4.0.0
  • Enum Constant Details

    • CARTESIAN

      public static final Model CARTESIAN
      Planar coordinates with math in coordinate units. SRID 0.
      Since:
      4.0.0
    • GEOGRAPHIC

      public static final Model GEOGRAPHIC
      Longitude/latitude on WGS84 earth surface. SRID 4326.
      Since:
      4.0.0
    • OTHER

      public static final Model OTHER
      Any other spatial reference system. Reported by Geometry.model() for SRIDs other than 0 and 4326. Never accepted by constructors.
      Since:
      4.0.0
  • Method Details

    • values

      public static Model[] 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 Model 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