Spaces:
Running
Running
File size: 1,043 Bytes
5107814 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
---
---
# Vector Layers
The heart of this application design is a vector dataset serialized as both (Geo)Parquet and PMTiles.
The parquet version allows for real-time calculations through rapid SQL queries via duckdb,
and the PMTiles version allows the data to be quickly visualized at any zoom through maplibre.
maplibre can also efficiently filter the PMTiles data given a feature ids returned by duckdb.
`gdal_translates` can generate both PMTiles and geoparquet, though `tippecanoe` provides more
options for PMTiles generation and can produce nicer tile sets.
The demo uses the CDC Social Vulnerability data because it is built on the hierachical partitioning
used by the Census (Country->State->County->Tract) hierarchy.
# Raster Layers
## Generating static tiles
## Zonal statistics calculations
The application is essentially driven by the vector layer data using SQL.
I find it helpful to pre-process 'zonal' calculations, e.g. the mean value of each raster layer
within each feature in the 'focal' vector data set(s).
|