Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update notebooks to new python client #27

Merged
merged 1 commit into from
Dec 30, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ content:
- kind: SetPollingSource
fetch:
kind: Url
url: https://opendata.vancouver.ca/explore/dataset/block-outlines/download/?format=shp&timezone=America/Los_Angeles&lang=en
url: https://opendata.vancouver.ca/explore/dataset/block-outlines/download/?format=geojson&timezone=America/Los_Angeles&lang=en
prepare:
- kind: Pipe
# Dataset contains some malformed geometry :(
command:
- 'jq'
- '-c'
- '.features[] | select(.geometry != null) | .'
read:
kind: EsriShapefile
preprocess:
kind: Sql
engine: spark
query: |
SELECT
ST_Transform(geometry, "epsg:3157", "epsg:4326") as geometry
FROM input
kind: NdGeoJson
merge:
# TODO
kind: Append
214 changes: 0 additions & 214 deletions ca.vancouver.opendata/property/blocks.ipynb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,9 @@ content:
- kind: SetPollingSource
fetch:
kind: Url
url: https://opendata.vancouver.ca/explore/dataset/local-area-boundary/download/?format=shp&timezone=America/Los_Angeles&lang=en
url: https://opendata.vancouver.ca/explore/dataset/local-area-boundary/download/?format=geojson&timezone=America/Los_Angeles&lang=en
read:
kind: EsriShapefile
preprocess:
kind: Sql
engine: spark
query: |
SELECT
ST_Transform(geometry, "epsg:3157", "epsg:4326") as geometry,
MAPID,
NAME
FROM input
kind: GeoJson
merge:
# TODO
kind: Append
Loading
Loading