Class OsmObstructionFinder.AmenityAttr

java.lang.Object
org.ka2ddo.yaac.osm.OsmObstructionFinder.AmenityAttr
Enclosing class:
OsmObstructionFinder

public static class OsmObstructionFinder.AmenityAttr extends Object
Structure containing parameters for interpreting OSM Node objects that could be RF obstructions.
Author:
Andrew Pavlin, KA2DDO
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final ColorType
    Code enum for the color to draw the obstruction.
    final Length
    Height of an obstruction.
    final int
    Radius of a Node obstruction in millionths of degrees (if non-negative) or negated scaling factor from height in meters to radius in millionths of degrees if negative.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getRadius(float height)
    Get radius of this target based on its height.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • color

      public final ColorType color
      Code enum for the color to draw the obstruction.
    • defHeight

      public final Length defHeight
      Height of an obstruction.
    • defRadius

      public final int defRadius
      Radius of a Node obstruction in millionths of degrees (if non-negative) or negated scaling factor from height in meters to radius in millionths of degrees if negative.
  • Method Details

    • getRadius

      public int getRadius(float height)
      Get radius of this target based on its height.
      Parameters:
      height - height in fractional meters
      Returns:
      radius in millionths of degrees (approximately tenths of a meter)