postgresql创建空间数据库

1.打开postgis安装路径下的SQL Shell,会弹出命令行对话框


2.输入用户名密码等登录数据库
3.敲入创建数据库命令:
  create database mydatabase;
4.对刚才创建的数据库添加空间扩展,依次敲入下面三个命令即可。
\c mydatabases;
CREATE EXTENSION postgis;
CREATE EXTENSION pgrouting;
CREATE EXTENSION postgis_topology;
 CREATE EXTENSION fuzzystrmatch;
CREATE EXTENSION postgis_tiger_geocoder;
CREATE EXTENSION address_standardizer;

转载自:https://blog.csdn.net/longshengguoji/article/details/45769319

You may also like...