Add a script which makes it easier to create the database.
This module must be imported and the Session initialised before you import the ORM, otherwise the ORM will not be able to interface with the database. The purpose of separating the session is that it allows us to use a separate database for the unit tests.
Lots of skipped tests won't pass at the moment, that needs to be resolved, but I'm not sure how many of the tests are useful. Also I need to add some nice test data to the repo and use get_test_resource() everywhere.
Work in progress. Can import a Track and return it's length if you know the project to use.
Uses GDAL to load the grid file into a numpy array. Calculates the lat/lons for the data coverage. Includes a skeleton context manager for loading GDAL files using 'with'. Doesn't yet do any error handling etc, or even close the dataset (the API seems to be lacking a close?). Requires a SRTM DEM (digital elevation model) data grid from Geoscience Australia. This data is Creative Commons, and can be acquired from http://nedf.ga.gov.au/geoportal/catalog/main/home.page
Simply editing a track to say add a route, causes all the entries to be marked as 'manual' it seems. Completely manual tracks will have an evenly spread speed, so as a result their speed anomoly will be 0, and thus vanish from the binning.
This technique produces reliable bearings although does require you to specify the UTM zone.
Downloaded data is in JSON format