bcgov / bcgov/ols-devkit

Write a script to compute admin area of each DRA locality

Open
#187 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
7
Forks
6
Avg merge
1d 16h
Merged PRs (30d)
1

Description

Create a python script called somthing like findDraLocalityAdminAreas.py

The script should read the following inputs:
1. DRA locality coverage containing polygons for each dra locality.
2. Admin Area coverage containing polygons for a given set of admin areas (e.g., Community Health Service Areas).
3. A parameter called adminAreaType which contains the official code of the set of admin areas in the coverage (e.g., "CHSA")

The script should perform a spatial overlay of each DRA locality polygon against the admin area coverage to determine the list of intersecting admin areas.

Script should output the following for each dra locality:

1. localityName
2. adminAreaType
3. adminAreaCode

If there is more than one admin area intersecting a locality, set adminAreaCode to a special character like asterisk ("*") to represent "more than one". For example, if the dra locality polygon for Victoria intersects five community health service areas, set Victoria's adminAreaCode to "*", If the dra locality polygon for Ahousat intersects a single CHSA called "NBAH", set Ahousat's adminAreaCode to "NBAH"
If there is no intersecting admin area for a given dra locality polygon, set adminAreaCode to the empty string ("")

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating existing Python scripts and the repository's conventions for reading coverage inputs and writing results. Implement the named script around the three stated inputs and spatial overlay, then verify outputs for localities with multiple, single, and no intersecting admin areas.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.