From 2ed86cb7a4f35849df04a2258fa56292048dba44 Mon Sep 17 00:00:00 2001 From: Simon Norris Date: Tue, 6 Aug 2024 17:26:39 -0700 Subject: [PATCH] note relationship to designatedlands, fix columns in dump --- README.md | 12 +++++++++++- process.sh | 10 +++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c318fe5..72c5f2a 100644 --- a/README.md +++ b/README.md @@ -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 @@ -67,4 +68,13 @@ See `source.schema.json` for a full description. Output files are: - `harvest_restrictions.gdb.zip` -- `harvest_restrictions_summary.csv` \ No newline at end of file +- `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 diff --git a/process.sh b/process.sh index 5c775b0..ab4a6b8 100755 --- a/process.sh +++ b/process.sh @@ -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