Enum Class WayType

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

public enum WayType extends Enum<WayType> implements EnumMayHaveFlags, EnumWithImageName
This enumeration lists all the supported categories of Ways that can be rendered on the map.
Author:
Andrew Pavlin, KA2DDO
  • Enum Constant Details

    • HWY_MOTORWAY

      public static final WayType HWY_MOTORWAY
    • HWY_TRUNK

      public static final WayType HWY_TRUNK
    • HWY_PRIMARY

      public static final WayType HWY_PRIMARY
    • HWY_SECONDARY

      public static final WayType HWY_SECONDARY
    • HWY_TERTIARY

      public static final WayType HWY_TERTIARY
    • HWY_RESIDENTIAL

      public static final WayType HWY_RESIDENTIAL
    • HWY_UNCLASSIFIED

      public static final WayType HWY_UNCLASSIFIED
    • HWY_ROAD

      public static final WayType HWY_ROAD
    • HWY_LIVING_STREET

      public static final WayType HWY_LIVING_STREET
    • HWY_SERVICE

      public static final WayType HWY_SERVICE
    • HWY_TRACK

      public static final WayType HWY_TRACK
    • HWY_RACEWAY

      public static final WayType HWY_RACEWAY
    • HWY_SERVICES

      public static final WayType HWY_SERVICES
    • HWY_REST_AREA

      public static final WayType HWY_REST_AREA
    • HWY_BUS_GUIDEWAY

      public static final WayType HWY_BUS_GUIDEWAY
    • HWY_PATH

      public static final WayType HWY_PATH
    • HWY_CYCLEWAY

      public static final WayType HWY_CYCLEWAY
    • HWY_FOOTWAY

      public static final WayType HWY_FOOTWAY
    • HWY_BRIDLEWAY

      public static final WayType HWY_BRIDLEWAY
    • HWY_BYWAY

      public static final WayType HWY_BYWAY
    • WWY_UNKNOWN

      public static final WayType WWY_UNKNOWN
    • WWY_STREAM

      public static final WayType WWY_STREAM
    • WWY_RIVER

      public static final WayType WWY_RIVER
    • WWY_RIVERBANK

      public static final WayType WWY_RIVERBANK
    • WWY_CANAL

      public static final WayType WWY_CANAL
    • WWY_DITCH

      public static final WayType WWY_DITCH
    • WWY_RAPIDS

      public static final WayType WWY_RAPIDS
    • WWY_WATERFALL

      public static final WayType WWY_WATERFALL
    • RWY_RAIL

      public static final WayType RWY_RAIL
    • RWY_TRAM

      public static final WayType RWY_TRAM
    • RWY_LIGHT_RAIL

      public static final WayType RWY_LIGHT_RAIL
    • RWY_DISUSED

      public static final WayType RWY_DISUSED
    • RWY_MONORAIL

      public static final WayType RWY_MONORAIL
    • RWY_UNKNOWN

      public static final WayType RWY_UNKNOWN
    • AWY_UNKNOWN

      public static final WayType AWY_UNKNOWN
    • AWY_AERODROME

      public static final WayType AWY_AERODROME
    • AWY_RUNWAY

      public static final WayType AWY_RUNWAY
    • BDY_UNKNOWN

      public static final WayType BDY_UNKNOWN
    • BDY_LANDUSE_FOREST

      public static final WayType BDY_LANDUSE_FOREST
    • BDY_SUBDIVISION

      public static final WayType BDY_SUBDIVISION
    • BDY_MARITIME

      public static final WayType BDY_MARITIME
    • BDY_COASTLINE

      public static final WayType BDY_COASTLINE
    • BDY_PARK

      public static final WayType BDY_PARK
    • BDY_PROTECTED_AREA

      public static final WayType BDY_PROTECTED_AREA
    • BDY_ADMINISTRATIVE

      public static final WayType BDY_ADMINISTRATIVE
    • PWR_LINE

      public static final WayType PWR_LINE
    • DONT_SHOW

      public static final WayType DONT_SHOW
    • AMENITY

      public static final WayType AMENITY
    • NAT_WETLAND

      public static final WayType NAT_WETLAND
    • BDY_ADMIN_1

      public static final WayType BDY_ADMIN_1
    • BDY_ADMIN_2

      public static final WayType BDY_ADMIN_2
    • BDY_ADMIN_3

      public static final WayType BDY_ADMIN_3
    • BDY_ADMIN_4

      public static final WayType BDY_ADMIN_4
    • BDY_ADMIN_5

      public static final WayType BDY_ADMIN_5
    • BDY_ADMIN_6

      public static final WayType BDY_ADMIN_6
    • BDY_ADMIN_7

      public static final WayType BDY_ADMIN_7
    • BDY_ADMIN_8

      public static final WayType BDY_ADMIN_8
    • BDY_ADMIN_9

      public static final WayType BDY_ADMIN_9
    • BDY_ADMIN_10

      public static final WayType BDY_ADMIN_10
    • BDY_ADMIN_11

      public static final WayType BDY_ADMIN_11
    • BDY_LANDUSE_GREEN

      public static final WayType BDY_LANDUSE_GREEN
    • BDY_LANDUSE_INDUSTRIAL

      public static final WayType BDY_LANDUSE_INDUSTRIAL
    • AWY_TAXIWAY

      public static final WayType AWY_TAXIWAY
    • AWY_APRON

      public static final WayType AWY_APRON
    • WWY_LAKE

      public static final WayType WWY_LAKE
    • WWY_POND

      public static final WayType WWY_POND
    • BDY_LANDUSE_FARM

      public static final WayType BDY_LANDUSE_FARM
    • HWY_CONSTRUCTION

      public static final WayType HWY_CONSTRUCTION
    • BDY_LANDUSE_LANDFILL

      public static final WayType BDY_LANDUSE_LANDFILL
    • HWY_STEPS

      public static final WayType HWY_STEPS
    • BDY_SHORELINE

      public static final WayType BDY_SHORELINE
    • NAT_GLACIER

      public static final WayType NAT_GLACIER
    • WWY_ROUTE

      public static final WayType WWY_ROUTE
    • WWY_SEA

      public static final WayType WWY_SEA
    • PIPELINE

      public static final WayType PIPELINE
    • WALL

      public static final WayType WALL
    • FENCE

      public static final WayType FENCE
  • Method Details

    • values

      public static WayType[] 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 WayType 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
    • getColorType

      public final ColorType getColorType()
      Get the coloring style that should be used by default for this WayType.
      Returns:
      ColorType enum
    • getStroke

      public final OsmLineType getStroke()
      Get the line-drawing stroke style that should be used by default for this WayType. Meaningless for area type Ways.
      Returns:
      OsmLineType enum
    • getMaxZoomLevel

      public final float getMaxZoomLevel()
      Get the default maximum zoom level at which this WayType will be rendered.
      Returns:
      float zoom level
    • getMaxLabelZoom

      public final float getMaxLabelZoom()
      Get the default maximum zoom level at which labels for this WayType will be rendered.
      Returns:
      float zoom level
    • nonClonedValues

      public static WayType[] nonClonedValues()
      Get a non-copied ordered array of all the defined WayType enum values.
      Returns:
      array of WayTypes
    • 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
    • getLayer

      public byte getLayer()
      Returns the rendering Z-layer for Ways of this WayType. Used by the OpenStreetMap importers to sort less important Ways underneath other Ways.
      Returns:
      Z-layer for this WayType
    • getDefaultLaneCount

      public int getDefaultLaneCount()
      Get the number of lanes normally associated with this type of road.
      Returns:
      lane count for a one-way version of this road (or approximation for non-roads)
    • getImagePath

      public String getImagePath()
      Return the relative path name of the image file for this enum value.
      Specified by:
      getImagePath in interface EnumWithImageName
      Returns:
      path name String, or a two-character APRS symbol table ID and code
    • isAdminBoundary

      public boolean isAdminBoundary()
      Indicate if this WayType represents an administrative or political boundary that shouldn't be tagged with "highway" signs (even if the "ref" tag was used to provide an abbreviated name for the boundary).
      Returns:
      boolean true if Ways of this WayType should be rendered as administrative boundaries