Closed smcalilly closed 2 years ago
There are several pieces to do this. At a high level:
At a low level:
Alternatively, we could have a new Boundary model with a geometry and then relate each model to it.
Or, we could just add new unmanaged models with the districts (which we'll already need to do so we can most easily import) and then use those models anywhere we need districts/zones.
Their pinus
schema has these tables:
One problem with these data: the house and senate districts are a specific year, so this will break whenever new house/senate boundaries are drawn and a new table is added with the new boundaries.
I'm not sure the best approach here. Using a phase's GIS assets, we'll need to find the intersection of each asset with each district/zone boundary.
We'll need to figure out our strategy for step 3 before we can do this. Once we figure out that, this piece should be straightfoward.
sounds good.
write the import_shape script assuming that we have the data in the repo somewhere as geojson already.
Will also need to remove this from the project edit form and instead show a list of zones/districts