pacificclimate / scip-db

ORM for a database of BC salmon population
GNU General Public License v3.0
2 stars 0 forks source link

Add region-indexing script #2

Open corviday opened 1 year ago

corviday commented 1 year ago

Bare-bones functionality: The region-indexing script should accept a shapefile containing one or more polygon or multipolygon features, a database connection string, and a string indicating what kind of region is in the shapefile (basin, watershed, or conservation unit). A region should have a full name and short code, and opionally a point representing the hydrological "outlet" of the watershed.

Desirable bonus features :

corviday commented 1 year ago

I've been experimenting with the shapely concave_hull command. I think it might be useful to turn islandy shapes with dozens or hundreds of little polygons into polygons more reasonable to do calculations with and display on maps. We don't expect any other watershed to be between islands where it would overlap a concave hull, just empty ocean. Including empty ocean won't impact calculations, since data just isn7t available there..