Update readme with how I created the working district table

This commit is contained in:
Eli Ribble 2026-01-13 23:36:09 +00:00
parent cf06bb9f49
commit 81dabdf097
No known key found for this signature in database

View file

@ -36,7 +36,9 @@ You'll need a number of environment variables for configuring things;
There's a table containing district information in the database, `public.district`. It was created with:
```
shp2pgsql -s 4326 -c -D -I CA_districts.shp public.district | psql -d nidus-sync
shp2pgsql -s 3857 -c -D -I CA_districts.shp public.district | psql -d nidus-sync
psql
ALTER TABLE district ADD COLUMN geom_4326 geometry(MultiPolygon,4326) GENERATED ALWAYS AS (ST_Transform(geom, 4326)) STORED;
```
## Hacking