bcgov / designatedlands

Python script to combine conservation related spatial data from many sources to create a single 'Designated Lands' layer for British Columbia
Apache License 2.0
9 stars 4 forks source link

Add name column to extracted data #26

Closed smnorris closed 6 years ago

smnorris commented 7 years ago

Harvesting restrictions mapping requires that the feature name be retained in the cleaned tables. (ie PA_NAME etc).

The column to be retained can be noted by adding a name_column_source or similar to sources.csv. However, retaining this in the cleaned tables would require an additional ST_Union when things get added to the output - there are overlapping features within individual sources (with different names).

Whether the name column is retained could perhaps be a switch in the CONFIG dict. Or it could be the default behaviour - it wouldn't change the conservationlands output, just the intermediate layers which are not currently used.

ateucher commented 7 years ago

I have mostly implemented this for generating the "raw" layer (with process --raw) where overlapping polygons are not removed.

ateucher commented 6 years ago

@smnorris I think this is also done. Close?

smnorris commented 6 years ago

Yep