Installation Steps:
- Download this repo.
- Install Pipenv. Alternatively, setup your working Python environment according to your own preference (and risk tolerance).
pip install
requirements. You can either use the providedPipfile
or therequirements.txt
file (the latter is generated from thePipfile
).- Installed!
It's pretty basic, because I'm running this entirely through Folium, but without Javascript. There's a few restrictions and steps, but it should be fairly straightforward.
Steps to run the GUI: Run the draw_waypoints.py
file. If you're using Pipenv, remember to use pipenv run draw_waypoints.py
or similar.
- This will start a Flask application. Open your browser to
127.0.0.1/5000
to access the map GUI. - Drag and zoom around the map as you please, to reach the place of interest. Currently, it defaults to opening centered around Buzzards Bay.
- Add waypoints by dropping markers - you can do so with the tab on the left-hand side of the map.
- There should be an icon looking like an inverted triangle with a rounded top - click this icon.
- Next, click the point on the map where you wish to add a waypoint.
- If you don't like where you placed it, there is a trash can symbol which will let you click the marker you dropped to delete.
- Repeat step c until you've dropped all the waypoints of interest.
- On the right-hand side, click Export. This will let you download a GeoJSON file of all the waypoints. Save this as anything you want - currently, it defaults to
my_plan.geojson
.- Make sure the file ends in
.geojson
!
- Make sure the file ends in
Steps to generate the .mi file:
- Run the python file
geoparse.py
. Use Pipenv or another method to run the commandpython geoparse.py
, according to your setup.- If it is in the same folder as your waypoints file named
my_plan.geojson
, you can directly run it. - If not, pass in the waypoint file path with the argument
-i
, likepython geoparse.py -i my_plan.geojson
.
- If it is in the same folder as your waypoints file named
- This will output to terminal the .mi file contents. Copy-paste this to your .mi file.