Package org.ka2ddo.yaac.osm
Class OsmObstructionFinder
java.lang.Object
org.ka2ddo.yaac.osm.OsmObstructionFinder
This class provides a means of looking up potential above-ground obstructions
(obtained from OpenStreetMap data) in a specified area.
- Author:
- Andrew Pavlin, KA2DDO
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Structure containing parameters for interpreting OSM Node objects that could be RF obstructions. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
flush()
Clear all the cached OSM data in the OsmObstructionFinder.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.static RTreeNode
getTile
(double latitude, double longitude) Get an OSM object tree for the 1-degree by 1-degree region of the planet requested.static RTreeNode
getTile
(int latitude, int longitude) Get a SRTMTile object for the 1-degree by 1-degree region of the planet requested.
-
Field Details
-
OBSTRUCTING_AMENITIES
-
-
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 searchminLon
- southwest longitude (in millionths of degrees) of bounding box to searchmaxLat
- northeast latitude (in millionths of degrees) of bounding box to searchmaxLon
- 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
Get a SRTMTile object for the 1-degree by 1-degree region of the planet requested.- Parameters:
latitude
- int latitude in millionths of degrees Northlongitude
- int longitude in millionths of degrees East- Returns:
- SRTMTile object containing elevation data for the specified latitude/longitude
-
getTile
Get an OSM object tree for the 1-degree by 1-degree region of the planet requested.- Parameters:
latitude
- double latitude in fractional degrees Northlongitude
- 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.
-