Enum Class Model
- All Implemented Interfaces:
Serializable,Comparable<Model>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPlanar coordinates with math in coordinate units.Longitude/latitude on WGS84 earth surface.Any other spatial reference system. -
Method Summary
-
Enum Constant Details
-
CARTESIAN
Planar coordinates with math in coordinate units. SRID 0.- Since:
- 4.0.0
-
GEOGRAPHIC
Longitude/latitude on WGS84 earth surface. SRID 4326.- Since:
- 4.0.0
-
OTHER
Any other spatial reference system. Reported byGeometry.model()for SRIDs other than 0 and 4326. Never accepted by constructors.- Since:
- 4.0.0
-
-
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
-