|
|
|
1. create the database
|
|
|
|
2. create the extension of the database (as database superuser usually postgres):
|
|
|
|
```
|
|
|
|
CREATE EXTENSION postgis;
|
|
|
|
```
|
|
|
|
3. write the command line
|
|
|
|
```
|
|
|
|
shp2pgsql -D -I -c -s 4326 -W LATIN1 filename tablename | psql -d dbname -h hostname -U username
|
|
|
|
``` |
|
|
\ No newline at end of file |