Closed smnorris closed 7 years ago
Fixed in 55dcbfd
Does the hierarchy matter in the end product? Are all layers within a rollup group not just merged?
No, we have just dissolved/merged to the alias / input layer level. I haven't actually added that column to the output in the script, it is a last step.
Ok. Are overlaps between layers removed at this point?
Should be, that is definitely the goal. Area checks of output are needed though.
Awesome. If that's dealt with then dissolving on the rollup group should be trivial.
Currently, great_bear_fisheries_watersheds
is lower priority thangreat_bear_ebm_area
.
This doesn't make much sense as is, since the EBM area covers all of the watersheds, adding the watersheds at the end would have no effect.
@ateucher : Based on your comment above, it sounds like this is moot - the input categories don't matter, only the rollup categories are required?
Yes, we didn't actually sort the designations within a category, just assigned them to a category (actually ranking every designation is really difficult). Sorry that wasn't clear to begin with
Ok, that is slightly different from the previous resource_report job.
With only 4 categories I wouldn't bother overlaying each of the source layers individually.
Instead, you can insert all records for a given category into a table and merge them with ST_Union
, then overlay the resulting category tables. It might not be any faster to process but because things get merged together into only 4 layers for calculating ST_Difference
there are less opportunities for Topology errors.
Anyway, it should works as is.
Thanks @smnorris - It's not wasted effort to overlay them individually. If we go down the road of individually ranking them, the framework is there.
Rather than iterate through the source csv file, the script now sorts layers by hierarchy - just to be sure things are nicely ordered.
But the result from the sort is currently 1, 11 etc.