Skip to content

Commit 269a6cf

Browse files
committed
Update notebooks to new python client
1 parent 82b61d2 commit 269a6cf

12 files changed

+387
-792
lines changed

ca.vancouver.opendata/property/block-outlines/ca.vancouver.opendata.property.block-outlines.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ content:
77
- kind: SetPollingSource
88
fetch:
99
kind: Url
10-
url: https://opendata.vancouver.ca/explore/dataset/block-outlines/download/?format=shp&timezone=America/Los_Angeles&lang=en
10+
url: https://opendata.vancouver.ca/explore/dataset/block-outlines/download/?format=geojson&timezone=America/Los_Angeles&lang=en
11+
prepare:
12+
- kind: Pipe
13+
# Dataset contains some malformed geometry :(
14+
command:
15+
- 'jq'
16+
- '-c'
17+
- '.features[] | select(.geometry != null) | .'
1118
read:
12-
kind: EsriShapefile
13-
preprocess:
14-
kind: Sql
15-
engine: spark
16-
query: |
17-
SELECT
18-
ST_Transform(geometry, "epsg:3157", "epsg:4326") as geometry
19-
FROM input
19+
kind: NdGeoJson
2020
merge:
2121
# TODO
2222
kind: Append

ca.vancouver.opendata/property/blocks.ipynb

-214
This file was deleted.

ca.vancouver.opendata/property/local-area-boundaries/ca.vancouver.opendata.property.local-area-boundaries.yaml

+2-11
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,9 @@ content:
77
- kind: SetPollingSource
88
fetch:
99
kind: Url
10-
url: https://opendata.vancouver.ca/explore/dataset/local-area-boundary/download/?format=shp&timezone=America/Los_Angeles&lang=en
10+
url: https://opendata.vancouver.ca/explore/dataset/local-area-boundary/download/?format=geojson&timezone=America/Los_Angeles&lang=en
1111
read:
12-
kind: EsriShapefile
13-
preprocess:
14-
kind: Sql
15-
engine: spark
16-
query: |
17-
SELECT
18-
ST_Transform(geometry, "epsg:3157", "epsg:4326") as geometry,
19-
MAPID,
20-
NAME
21-
FROM input
12+
kind: GeoJson
2213
merge:
2314
# TODO
2415
kind: Append

0 commit comments

Comments
 (0)