install spatial
Browse files- app/app.py +3 -1
app/app.py
CHANGED
@@ -14,6 +14,9 @@ import sqlalchemy
|
|
14 |
import pathlib
|
15 |
from typing import Optional
|
16 |
|
|
|
|
|
|
|
17 |
# urls for main layer
|
18 |
ca_pmtiles = "https://huggingface.co/datasets/boettiger-lab/ca-30x30/resolve/main/cpad-stats.pmtiles"
|
19 |
ca_parquet = "https://huggingface.co/datasets/boettiger-lab/ca-30x30/resolve/main/cpad-stats.parquet"
|
@@ -24,7 +27,6 @@ style_choice = "GAP Status Code"
|
|
24 |
|
25 |
|
26 |
|
27 |
-
|
28 |
## Create the engine
|
29 |
cwd = pathlib.Path.cwd()
|
30 |
connect_args = {'preload_extensions':['spatial']}
|
|
|
14 |
import pathlib
|
15 |
from typing import Optional
|
16 |
|
17 |
+
import duckdb
|
18 |
+
duckdb.install_extension("spatial")
|
19 |
+
|
20 |
# urls for main layer
|
21 |
ca_pmtiles = "https://huggingface.co/datasets/boettiger-lab/ca-30x30/resolve/main/cpad-stats.pmtiles"
|
22 |
ca_parquet = "https://huggingface.co/datasets/boettiger-lab/ca-30x30/resolve/main/cpad-stats.parquet"
|
|
|
27 |
|
28 |
|
29 |
|
|
|
30 |
## Create the engine
|
31 |
cwd = pathlib.Path.cwd()
|
32 |
connect_args = {'preload_extensions':['spatial']}
|