... | ... | @@ -11,8 +11,8 @@ |
|
|
* [Public link](#public-link)
|
|
|
* [Comparison](#comparison)
|
|
|
* [Python scripts](#python-scripts)
|
|
|
* [gpxpod.py](#gpxpod.py)
|
|
|
* [gpxvcomp.py](#gpxvcomp.py)
|
|
|
* [gpxpod.py](#gpxpodpy)
|
|
|
* [gpxvcomp.py](#gpxvcomppy)
|
|
|
|
|
|
# Overview
|
|
|
|
... | ... | @@ -48,18 +48,27 @@ Given by the controller... |
|
|
|
|
|
## Index
|
|
|
|
|
|
Determine where the gpx files are...
|
|
|
The "index" method of the PageController first looks for gpx/kml/tcx files using the OC/NC file API. From that file list, it determines the interesting folders for the app. Then it checks if SRTM.py is installed and accessible. Then it returns the template populated with the folder list.
|
|
|
|
|
|
## Get markers for the chosen folder
|
|
|
|
|
|
Determine which track should be processed, process, return information...
|
|
|
The controller first get the gpx/kml/tcx file list in the selected folder and compares it with the available meta-info in the database to know which files have to be processed. Then it converts the kml/tcx to gpx if needed. Then it gets the content of the gpx files with OC/NC file API (so that it works with server-side encryption) and put them in a temporary folder. Then it processes those files and put the marker/geojson result in the database. Then it gets the markers for all gpx files in the selected folder to return it as the result of the ajax call.
|
|
|
|
|
|
## Get geojson and marker content
|
|
|
|
|
|
Get information from database and return it...
|
|
|
It basically gets the geojson for a gpx track.
|
|
|
|
|
|
## Public link
|
|
|
|
|
|
### For a file
|
|
|
|
|
|
It checks if the file is shared or if any of its parent folder is shared. If so, it returns the main template with the marker and geojson corresponding to the public track. The javascript in the view is in charge of adapting the display to present the public track.
|
|
|
|
|
|
### For a folder
|
|
|
|
|
|
It checks if the folder is shared and returns the main template with all the markers and geojsons of the files in the corresponding folder.
|
|
|
|
|
|
## Comparison
|
|
|
|
|
|
# Python scripts
|
... | ... | |