Package nz.org.riskscape.engine.geo
Enum Class GriddedGeometry.Options
- All Implemented Interfaces:
Serializable
,Comparable<GriddedGeometry.Options>
,Constable
- Enclosing class:
- GriddedGeometry
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCutting a polygon against the grid cell polygon can result in 'glancing' intersections, e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic GriddedGeometry.Options
Returns the enum constant of this class with the specified name.static GriddedGeometry.Options[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MATCH_SOURCE_GEOMETRY
Cutting a polygon against the grid cell polygon can result in 'glancing' intersections, e.g. if the two polygons touch on one side, this can produce a point or a line string result. This options removes these mismatching geometry types from the result returned by
GriddedGeometry.getCellIterator()
. NB I can't think of cases where you would want this option turned off (maybe for debugging), but it's there just in case.
-
-
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
-