Enum Class GeometryValidation

java.lang.Object
java.lang.Enum<GeometryValidation>
nz.org.riskscape.engine.geo.GeometryValidation
All Implemented Interfaces:
Serializable, Comparable<GeometryValidation>, Constable

public enum GeometryValidation extends Enum<GeometryValidation>

Enum to control if geometries should checked for validity and what to do if they are not

  • Enum Constant Details

    • ERROR

      public static final GeometryValidation ERROR

      Geometry validity is check. Any invalid geometries should cause an InvalidTupleException. to be thrown.

    • WARN

      public static final GeometryValidation WARN

      Geometry validation is checked, any invalid geometries should cause the user to be warned.

      In other places like post re-projection maybe a warning would be send direct to the nz.org.riskscape.engine.problem.ProblemSink but processing otherwise continue on.

    • OFF

      public static final GeometryValidation OFF

      Geometries are not checked for validity nor are they fixed.

  • Method Details

    • values

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