Open NewGraphEnvironment opened 1 year ago
I think it makes sense to have a gh repo with a default project and scripts required for data extracts and translation. A workflow like this might make sense for new project creation? Creating a GHA for it could work but not sure if necessary, we are already paying mergin for the space/version control of projects in use.
git clone NewGraphEnvironment/dff
cd dff
dff init <bounds / watershed_group> # create forms (with correct crs for area of interest)
dff get_data # extract streams/roads etc for area of interest defined by `dff-init`
# -- manually make any project specific edits to qml / qgz files
mergin create <new project name>
mergin push
# -- sync project to mobile, collect data
mergin pull # get field data
dff export <form> # export field data collected to required format
Let me know if you have thoughts on what would be a good standard name for the geopackage holding the all the background spatial layers.
Easy enough to change, I've just called it background_layers.gpkg
in draft script so far.
pulls these bcgw layers:
WHSE_FISH.FISS_STREAM_SAMPLE_SITES_SP \
WHSE_IMAGERY_AND_BASE_MAPS.MOT_CULVERTS_SP \
WHSE_FISH.PSCIS_ASSESSMENT_SVW \
WHSE_FISH.PSCIS_DESIGN_PROPOSAL_SVW \
WHSE_FISH.PSCIS_HABITAT_CONFIRMATION_SVW \
WHSE_FISH.PSCIS_REMEDIATION_SVW \
WHSE_BASEMAPPING.GBA_RAILWAY_TRACKS_SP \
WHSE_FOREST_TENURE.FTEN_ROAD_SECTION_LINES_SVW \
WHSE_BASEMAPPING.GBA_TRANSMISSION_LINES_SP
plus bcfishpass.streams
and bcfishpass.crossings
,
and DRA comes from FTP as TRANSPORT_LINE
- just to match the layer used in bcfishpass.
I think we also want 👍🏼
WHSE_FISH.FISS_FISH_OBSRVTN_PNT_SP \ WHSE_FISH.FISS_OBSTACLES_PNT_SP \ WHSE_BASEMAPPING.FWA_NAMED_STREAMS
background_layers.gpkg
seems like a great name to me
Maybe a good use case for github actions @smnorris ? There are lots of users and all have write permissions so things could maybe get messed up Doesn't really matter that much if the forms are always backed up with each sync though perhaps. There is version control baked in to mergin but no commit messages as far as I can tell so not sure how easy it would be to reverse out of somethihg. Maybe this is not necessary. Not sure.