Set the database when importing districts
This commit is contained in:
parent
a7fe9ee6d9
commit
f90faa4732
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ There's a table containing district information in the database, `import.distric
|
||||||
psql
|
psql
|
||||||
CREATE SCHEMA import;
|
CREATE SCHEMA import;
|
||||||
shp2pgsql -s 3857 -c -D -I CA_districts.shp import.district | psql -d nidus-sync
|
shp2pgsql -s 3857 -c -D -I CA_districts.shp import.district | psql -d nidus-sync
|
||||||
psql
|
psql -d nidus-sync
|
||||||
ALTER TABLE import.district ADD COLUMN geom_4326 geometry(MultiPolygon,4326) GENERATED ALWAYS AS (ST_Transform(geom, 4326)) STORED;
|
ALTER TABLE import.district ADD COLUMN geom_4326 geometry(MultiPolygon,4326) GENERATED ALWAYS AS (ST_Transform(geom, 4326)) STORED;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue