postgresql創(chuàng)建空間數(shù)據(jù)庫總共分為兩步:
1拜银、創(chuàng)建普通數(shù)據(jù)庫
2梧宫、給數(shù)據(jù)庫添加空間擴(kuò)展
創(chuàng)建普通數(shù)據(jù)庫
CREATE DATABASE dbname;
給數(shù)據(jù)庫添加空間擴(kuò)展,切換剛才創(chuàng)建的數(shù)據(jù)庫下洁灵,運(yùn)行下面的命令即可:
CREATE EXTENSION postgis;
CREATE EXTENSION postgis_topology;
CREATE EXTENSION fuzzystrmatch;
CREATE EXTENSION postgis_tiger_geocoder;
CREATE EXTENSION address_standardizer;
相關(guān)鏈接:
http://www.osgeo.cn/post/2155g 使用osr 創(chuàng)建shp 要素
https://blog.csdn.net/theonegis/article/details/80554993 gdal從geojson創(chuàng)建shp文件
http://live.osgeo.org/zh/quickstart/postgis_quickstart.html sql語句創(chuàng)建空間數(shù)據(jù)庫毙驯、表
https://www.cnblogs.com/lovebay/p/4921261.html gdal創(chuàng)建shp