Class OsmObstructionFinder

java.lang.Object
org.ka2ddo.yaac.osm.OsmObstructionFinder

public class OsmObstructionFinder extends Object
This class provides a means of looking up potential above-ground obstructions (obtained from OpenStreetMap data) in a specified area.
Author:
Andrew Pavlin, KA2DDO
  • Field Details

  • Constructor Details

    • OsmObstructionFinder

      public OsmObstructionFinder()
  • Method Details

    • getObstructions

      public static List<GenericTaggedNode<?>> getObstructions(int minLat, int minLon, int maxLat, int maxLon)
      Get a list of all OpenStreetMap features that could obstruct a line-of-sight.
      Parameters:
      minLat - southwest latitude (in millionths of degrees) of bounding box to search
      minLon - southwest longitude (in millionths of degrees) of bounding box to search
      maxLat - northeast latitude (in millionths of degrees) of bounding box to search
      maxLon - northeast longitude (in millionths of degrees) of bounding box to search
      Returns:
      List of any OSM features extending above ground in the specified bounding box
    • getTile

      public static RTreeNode getTile(int latitude, int longitude)
      Get a SRTMTile object for the 1-degree by 1-degree region of the planet requested.
      Parameters:
      latitude - int latitude in millionths of degrees North
      longitude - int longitude in millionths of degrees East
      Returns:
      SRTMTile object containing elevation data for the specified latitude/longitude
    • getTile

      public static RTreeNode getTile(double latitude, double longitude)
      Get an OSM object tree for the 1-degree by 1-degree region of the planet requested.
      Parameters:
      latitude - double latitude in fractional degrees North
      longitude - double longitude in fractional degrees East
      Returns:
      RTreeNode object containing elevation data for the specified latitude/longitude
    • flush

      public static void flush()
      Clear all the cached OSM data in the OsmObstructionFinder.