Enum Class LandUse

java.lang.Object
java.lang.Enum<LandUse>
org.ka2ddo.yaac.osm.LandUse
All Implemented Interfaces:
Serializable, Comparable<LandUse>, Constable, AmenityOrWay, EnumMayHaveFlags

public enum LandUse extends Enum<LandUse> implements EnumMayHaveFlags, AmenityOrWay
This enum defines the supported values of the landuse="*" attribute in OSM. Note that all Ways with a landuse tag are assumed to be areas. See the definition of landuse on the OpenStreetMap wiki.
Author:
Andrew Pavlin, KA2DDO
  • Enum Constant Details

    • allotments

      public static final LandUse allotments
    • basin

      public static final LandUse basin
    • brownfield

      public static final LandUse brownfield
    • cemetery

      public static final LandUse cemetery
    • commercial

      public static final LandUse commercial
    • construction

      public static final LandUse construction
    • farm

      public static final LandUse farm
    • farmland

      public static final LandUse farmland
    • farmyard

      public static final LandUse farmyard
    • forest

      public static final LandUse forest
    • garages

      public static final LandUse garages
    • grass

      public static final LandUse grass
    • greenfield

      public static final LandUse greenfield
    • greenhouse

      public static final LandUse greenhouse
    • greenhouse_horticulture

      public static final LandUse greenhouse_horticulture
    • industrial

      public static final LandUse industrial
    • landfill

      public static final LandUse landfill
    • meadow

      public static final LandUse meadow
    • military

      public static final LandUse military
    • orchard

      public static final LandUse orchard
    • place_of_worship

      public static final LandUse place_of_worship
    • plant_nursery

      public static final LandUse plant_nursery
    • quarry

      public static final LandUse quarry
    • railway

      public static final LandUse railway
    • recreation_ground

      public static final LandUse recreation_ground
    • reservoir

      public static final LandUse reservoir
    • residential

      public static final LandUse residential
    • retail

      public static final LandUse retail
    • salt_pond

      public static final LandUse salt_pond
    • village_green

      public static final LandUse village_green
    • vineyard

      public static final LandUse vineyard
    • conservation

      public static final LandUse conservation
    • port

      public static final LandUse port
    • logging

      public static final LandUse logging
    • pond

      public static final LandUse pond
  • Method Details

    • values

      public static LandUse[] 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 LandUse 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
    • wayType

      public WayType wayType()
      Report the WayType for rendering this type of Way.
      Specified by:
      wayType in interface AmenityOrWay
      Returns:
      WayType
    • getAmenityType

      public AmenityType getAmenityType()
      Get amenity type associated with this enumeration; only for types that are amenities.
      Specified by:
      getAmenityType in interface AmenityOrWay
      Returns:
      AmenityType for this type, or null if not an amenity
    • value

      public static LandUse value(String name)
      Get the enum value associated with the string name specified.
      Parameters:
      name - String to convert into an Enum
      Returns:
      LandUse for the string name, or null if no match
    • getFlagMask

      public short getFlagMask()
      Indicates any flag bits implied by this enum type.
      Specified by:
      getFlagMask in interface EnumMayHaveFlags
      Returns:
      bitmask of flags if this enum implies flags