Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions makerules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,17 @@ $(CACHE_DIR)organisation.csv:
@mkdir -p $(CACHE_DIR)
curl -qfs "https://raw.githubusercontent.com/digital-land/organisation-dataset/main/collection/organisation.csv" > $(CACHE_DIR)organisation.csv


# download organisation-lpa relationships
$(CACHE_DIR)local-authority.csv:
@mkdir -p $(CACHE_DIR)
curl -qfs "https://raw.githubusercontent.com/digital-land/organisation-collection/main/data/local-authority.csv" > $(CACHE_DIR)local-authority.csv

# download lpa geometry
$(CACHE_DIR)lpa-geometry.csv:
@mkdir -p $(CACHE_DIR)
curl -qfs "https://datasette.planning.data.gov.uk/entity.csv?sql=select+geometry%2C+reference+from+entity+where+%22dataset%22+%3D+%3Ap0+order+by+entity+limit+101&p0=local-planning-authority&_size=max" > $(CACHE_DIR)lpa-geometry.csv

init:: config

config::;
Expand Down
5 changes: 5 additions & 0 deletions pipeline.mk
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ clean::
# local copy of the organisation dataset
init:: $(CACHE_DIR)organisation.csv

# local copy of local-authority for organisation-lpa relationship
init:: $(CACHE_DIR)local-authority.csv

init:: $(CACHE_DIR)lpa-geometry.csv

makerules::
curl -qfsL '$(SOURCE_URL)/makerules/main/pipeline.mk' > makerules/pipeline.mk

Expand Down