添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
礼貌的太阳  ·  How to Install the ...·  1 月前    · 
豪气的电影票  ·  Using pg_upgrade to ...·  1 月前    · 
爱吹牛的高山  ·  Chapter 2. PostGIS ...·  1 月前    · 
踢足球的茄子  ·  Getting Started | PostGIS·  2 月前    · 
年轻有为的茴香  ·  PostGIS·  8 月前    · 
谦逊的面包  ·  ***用php的strpos() ...·  5 月前    · 
悲伤的冰棍  ·  数据库库名有空格-掘金·  8 月前    · 

If you are running PostgreSQL as a service from a cloud provider (not installing it yourself) then you probably already have PostGIS installed, and you just need to enable it in your database. Connect to your database as the postgres user or another super-user account, and run:

CREATE EXTENSION postgis;

Congratulations! PostGIS is now enabled.

Explore Your Install

You can find out what version you have, with postgis_full_version() .

SELECT PostGIS_Full_Version();

You can also check to see what alternate PostGIS versions might be installed.

SELECT * FROM pg_available_extensions WHERE name = 'postgis';
        Learn about Spatial SQL

Start with the PostGIS Workshop for a hands-on guide to using spatial SQL for spatial data management and analysis.

Installing PostGIS

If you are just upgrading PostGIS, keeping the same PostgreSQL version, generally all you need to do is install the latest PostGIS binaries and then in each of your spatial databases, run:

SELECT postgis_extensions_upgrade();
-- verify you are running latest now
SELECT postgis_full_version();

FOSS4G 2023: Upgrade your PostgreSQL and PostGIS video goes over why you should upgrade your PostgreSQL and PostGIS, and steps to using pg_upgrade to do so.