Package nz.org.riskscape.engine.geo
Enum Class GeometryValidation
- All Implemented Interfaces:
Serializable
,Comparable<GeometryValidation>
,Constable
Enum to control if geometries should checked for validity and what to do if they are not
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GeometryValidation
Returns the enum constant of this class with the specified name.static GeometryValidation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERROR
Geometry validity is check. Any invalid geometries should cause an InvalidTupleException. to be thrown.
-
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
Geometries are not checked for validity nor are they fixed.
-
-
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
-