OutdoorRD / trails-viz

1 stars 2 forks source link

troubleshooting adding forest scale project to dashboard locally #117

Closed aromatic-toast closed 4 years ago

aromatic-toast commented 4 years ago

I'm attempting to run the dashboard locally using the readme instructions here.

currently, the dashboard components run normally for all the other projects that are currently in the project repo (KingCounty, MBS etc. ) however, I'm trying to add a new dataset to the dashboard while running it locally.

The data:

all the data files for the new forest scale project were added to the trails-viz-data/projects directory under ForestScale. The following files were added for the Forest Scale project:

To contrast, here is the data for King County: KingCo geojson

Screen Shot 2020-08-04 at 4 25 58 PM

KingCo Monthly

Screen Shot 2020-08-04 at 4 50 19 PM

KingCo Weekly

Screen Shot 2020-08-04 at 4 50 14 PM

In addition, I also genereated readme files for Forest Scale inside the trails-viz-data/readme folder. The readme docs appear normally for the landing page and the Visitation tab.

I ran the following commands to deploy it locally after creating a conda environment and installing all requirements.

export FLASK_APP=trailsvizapi
export FLASK_ENV=development
export DATA_FILES_ROOT=/Users/lesley/uw/wash_oregon_forest_level/trails-viz-data
flask run

The issues:

1) the polygons will not appear on the map for Forest Scale

2) visitation data such as bar graphs and timeseries plots will not show.

Observations so far:

There are no errors being thrown by the back-end so I can't tell what the issue really is and can only observe there is an issue with plotting the polygons and graphs.

There may be column names that are expected that the Forest Scale project data does not have, though I dug through the source code and modified some columns in the geojson that I thought would be relevant. For example, I made sure that the forest geojson file had the following column names: 'siteid', 'Trail_name', 'Prjct_code', 'geometry'.

I've made all other attempts to make the Forest Scale project have the same components as KingCo except for home locations. The data input files look similar enough for both projects.