Closed smnorris closed 1 year ago
Datasets that seem reasonable to add to the cached set of fgb files:
My proposal is for these files to be refreshed weekly. The weekly replication to postgres is already mostly set up, this is not a lot of additional work.
In theory, if all data sources noted in bcfishpass/qgis were synced to this spot, these files could also be used by QGIS for general bcfishpass mapping (in place of a connection to a bcfishpass postgres database).
for instructions on how to run scripts, see https://github.com/smnorris/dff-2022/blob/preclip_fgb/scripts/background_layers.md
Only 3min to download all WFS data for entire Skeena, thats pretty good.
$ time ./bcdata.sh "'BABL','BABR','BULK','KISP','KLUM','LKEL','LSKE','MORR','MSKE','SPAT','SUST','TAKL','USKE','ZYMO'"
real 2m45.054s
user 0m30.070s
sys 0m6.408s
The clipping is still really slow though. I don't have a time for a complete Skeena run yet. Some other tool could probably improve performance if that is critical. I tried clipping in geopandas
but that was similarly slow. QGIS does seem to have optimized clipping algorithms.