NewGraphEnvironment / dff-2022

Building digital field forms and processing data collected using R, postgresql, QGIS and other tools
Creative Commons Zero v1.0 Universal
0 stars 3 forks source link

add background data download script #50

Closed smnorris closed 1 year ago

smnorris commented 1 year ago

output looks like this:

$ ogrinfo background_layers.gpkg
INFO: Open of `background_layers.gpkg'
      using driver `GPKG' successful.
1: fwa_watershed_groups_poly (Multi Polygon)
2: crossings (Point)
3: streams (Line String)
4: whse_fish.fiss_fish_obsrvtn_pnt_sp (Point)
5: whse_fish.fiss_obstacles_pnt_sp (Point)
6: whse_fish.fiss_stream_sample_sites_sp (Point)
7: whse_imagery_and_base_maps.mot_culverts_sp (Point)
8: whse_fish.pscis_assessment_svw (Point)
9: whse_fish.pscis_design_proposal_svw
10: whse_fish.pscis_habitat_confirmation_svw
11: whse_fish.pscis_remediation_svw (Point)
12: whse_basemapping.gba_railway_tracks_sp (Line String)
13: whse_forest_tenure.ften_road_section_lines_svw
14: whse_basemapping.gba_transmission_lines_sp
15: fwa_named_streams (Multi Line String)
16: transport_line (Multi Line String)

todo at some point:

smnorris commented 1 year ago

Unfortunately this doesn't quite work yet - features.hillcresetgeo.ca responses are limited to 10k records so the streams layer can be incomplete.

smnorris commented 1 year ago

Should be good now. To avoid dealing with paging through results of bcfishpass features the script now just pulls from posted file geodatabase.