Enum Class GriddedGeometry.Options

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

public static enum GriddedGeometry.Options extends Enum<GriddedGeometry.Options>
  • Enum Constant Details

    • MATCH_SOURCE_GEOMETRY

      public static final GriddedGeometry.Options 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

      public static GriddedGeometry.Options[] 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 GriddedGeometry.Options 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