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

remove `designated_lands` and sub in parks #97

Closed NewGraphEnvironment closed 1 year ago

NewGraphEnvironment commented 1 year ago

designated_lands not rendering after clip by backgroundlayers.sh - https://github.com/bcgov/designatedlands

rather than mess with it we will use below as then we also get names and we can poach symbology from bcfishpass.

Will close with commit but can reference later here to see how it was clipped and look for solution if we feel we really need it

whse_admin_boundaries.clab_national_parks whse_tantalis.ta_park_ecores_pa_svw

NewGraphEnvironment commented 1 year ago

putting the code from the script here along with a link to the csv with all the layers this pulls together for ease of reference in the future:

# ---------------
# designatedlands
# ---------------
echo 'Getting designated land layer (https://github.com/bcgov/designatedlands)'
wget -qN https://github.com/bcgov/designatedlands/releases/download/v0.1.0/designatedlands.gpkg.zip -O designatedlands.gpkg.zip
unzip -o designatedlands.gpkg.zip
ogr2ogr -f GPKG background_layers.gpkg \
    -update \
    -nln designatedlands \
    -t_srs EPSG:3005 \
    -dim XY \
    -spat $BOUNDS \
    -spat_srs EPSG:3005 \
    -clipsrc aoi.geojson \
    -clipsrclayer aoi \
    designatedlands.gpkg \
    designatedlands

https://github.com/bcgov/designatedlands/blob/master/sources_designations.csv