Skip to content

aidenszeto/nasa-drf-situational-awareness-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NASA DRF Situational Awareness Service

The situational awareness script takes in a given geojson trajectory and identifies trajectory conflicts against a given POI database. The script generates an output.kml file that visualizes all of the conflicting POIs (with Google Earth).

Adding support for additional regions

This service uses open source POI data to seed a MongoDB database. To seed the database with data from a new region:

  • Download the .shp.zip file for the region from Geofabrik.
  • Unzip the file into a folder named REGION_NAME-latest-free.shp, replacing REGION_NAME with the actual region name.
  • Run python v3/tools/shpToGeojson.py REGION_NAME-latest-free.shp, replacing REGION_NAME with the actual region name.
  • This should make a new folder called REGION_NAME-geojson which contains geojson files for various POI types. We want to use gis_osm_pois_a_free_1.geojson.
  • In v3/tools/seedDBStatic.py, update line 21 to refer to your region name. For example, if we are seeding data for New York we could replace ca with ny
  • Additionally update the statements starting on line 60 to include support for database collections for your newly added region name.
  • Run the following commands to seed the database: python v3/tools/seedDBStatic.py REGION_NAME-geojson/gis_osm_pois_a_free_1.geojson -f

Note: The -f flag can be removed if you would not like to store flyable POIs. If -f is set, the seedDBStatic.py script will store all POIs. If you would like to store a version of the data with the flyable POIs and a version without the flyable POIs you should use different database names, ie. ny_static for all POIs and ny for just unflyable POIs.

About

Situational awareness service for NASA Data Reasoning & Fabric project - https://drf.nasa.gov/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages