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:
allsites.geojson in the correct projection of epsg: 4326
viz_model_mmm.csv
viz_model_www.csv
To contrast, here is the data for King County:
KingCo geojson
KingCo Monthly
KingCo Weekly
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
However, the front-end doesn't throw any errors when it makes a request for the data. I'm monitoring the output in terminal. So it is difficult to tell what is going on with no error thrown.
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.
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 thetrails-viz-data/projects
directory underForestScale
. The following files were added for the Forest Scale project:allsites.geojson in the correct projection of epsg: 4326
viz_model_mmm.csv
viz_model_www.csv
To contrast, here is the data for King County: KingCo geojson
KingCo Monthly
KingCo Weekly
In addition, I also genereated
readme
files for Forest Scale inside thetrails-viz-data/readme
folder. The readme docs appear normally for the landing page and theVisitation
tab.I ran the following commands to deploy it locally after creating a conda environment and installing all requirements.
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 asKingCo
except forhome locations
. The data input files look similar enough for both projects.