Skip to content

Commit

Permalink
note relationship to designatedlands, fix columns in dump
Browse files Browse the repository at this point in the history
  • Loading branch information
smnorris committed Aug 7, 2024
1 parent 0f8f90a commit 2ed86cb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ For example, this defines National Parks - data come from the BCGW, all parks ar

See `source.schema.json` for a full description.


## Usage

1. Edit `sources.json` as required
Expand All @@ -67,4 +68,13 @@ See `source.schema.json` for a full description.
Output files are:

- `harvest_restrictions.gdb.zip`
- `harvest_restrictions_summary.csv`
- `harvest_restrictions_summary.csv`


## designatedlands

This tool is a stripped down version of the [designated lands script](https://github.com/bcgov/designatedlands) and could be used for that analysis - mine and oil and gas restrictions are supported. However, several components of `designatedlands` are not currently supported by this tool:

- raster based analysis
- config based pre-processing of input sources
- adjustment of tiled processing to include the sliver of BC's official boundary not covered by 250k tiles
10 changes: 5 additions & 5 deletions process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ ogr2ogr \
when harvest_restriction = 5 then 'Low Restricted'
when harvest_restriction = 6 then 'No Special Restriction'
end as harvest_restriction_class_desc,
array_to_string(all_aliases, ';') as all_harvest_restrictions,
array_to_string(all_descriptions, ';') as all_descriptions,
array_to_string(all_primary_keys, ';') as all_primary_keys,
array_to_string(all_names, ';') as all_names,
array_to_string(all_harvest_restrictions, ';') as all_harvest_restriction_classes,
array_to_string(aliases_all, ';') as harvest_restrictions_all,
array_to_string(descriptions_all, ';') as descriptions_all,
array_to_string(primary_keys_all, ';') as primary_keys_all,
array_to_string(names_all, ';') as names_all,
array_to_string(harvest_restrictions_all, ';') as harvest_restriction_classes_all,
map_tile text,
geom
from designations
Expand Down

0 comments on commit 2ed86cb

Please sign in to comment.