fix up instructions on district import
After doing it in prod.
This commit is contained in:
parent
f38381eaf0
commit
56e1e51279
1 changed files with 5 additions and 3 deletions
|
|
@ -33,12 +33,14 @@ You'll need a number of environment variables for configuring things;
|
|||
|
||||
### Districts
|
||||
|
||||
There's a table containing district information in the database, `public.district`. It was created with:
|
||||
There's a table containing district information in the database, `import.district`. It was created with:
|
||||
|
||||
```
|
||||
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;
|
||||
CREATE SCHEMA import;
|
||||
shp2pgsql -s 3857 -c -D -I CA_districts.shp import.district | psql -d nidus-sync
|
||||
psql
|
||||
ALTER TABLE import.district ADD COLUMN geom_4326 geometry(MultiPolygon,4326) GENERATED ALWAYS AS (ST_Transform(geom, 4326)) STORED;
|
||||
```
|
||||
|
||||
## Hacking
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue