标签:data ddr create standard algo 添加 geo process add
打开psql(用开始菜单中搜索即可搜到,或者进入pgAdmin的插件菜单下的psql console)
进入数据库后,使用下列语句创建数据库(此时还是普通数据库)
create database xx;
转到你新建的xx数据库中:
\c xx;
然后输入官网给的这几条添加扩展语句(官网可找到):
-- Enable PostGIS (includes raster)
CREATE EXTENSION postgis;
-- Enable Topology
CREATE EXTENSION postgis_topology;
-- Enable PostGIS Advanced 3D
-- and other geoprocessing algorithms
-- sfcgal not available with all distributions
CREATE EXTENSION postgis_sfcgal;
-- fuzzy matching needed for Tiger
CREATE EXTENSION fuzzystrmatch;
-- rule based standardizer
CREATE EXTENSION address_standardizer;
-- example rule data set
CREATE EXTENSION address_standardizer_data_us;
-- Enable US Tiger Geocoder
CREATE EXTENSION postgis_tiger_geocoder;
进行对比可看出,我创建的mygis(空间数据库)比普通数据库多了5个扩展,3个架构
标签:data ddr create standard algo 添加 geo process add
原文地址:http://www.cnblogs.com/flanker521/p/6813028.html