zoukankan      html  css  js  c++  java
  • CentOS7上为PostgreSQL11安装PostGIS

    安装环境:Cenots 7.5 + PostgreSQL11.9

    GIS (Geographic Information Systems) 支持基于R-tree的GiST索引。分析和处理GIS对象。

    1.增加EPEL资料库

    yum -y install epel-release
    

      

    2.安装PostGIS

    yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
    yum install postgis30_11
    

      

    3.安装后检查

    # rpm -qi postgis30_11
    Name        : postgis30_11
    Version     : 3.0.2
    Release     : 2.rhel7
    Architecture: x86_64
    Install Date: Thu 15 Oct 2020 09:09:30 AM CST
    Group       : Unspecified
    Size        : 34467716
    License     : GPLv2+
    Signature   : DSA/SHA1, Tue 29 Sep 2020 08:15:51 PM CST, Key ID 1f16d2e1442df0f8
    Source RPM  : postgis30_11-3.0.2-2.rhel7.src.rpm
    Build Date  : Tue 29 Sep 2020 08:15:47 PM CST
    Build Host  : koji-centos7-x86-64-pgbuild
    Relocations : (not relocatable)
    Vendor      : PostgreSQL Global Development Group
    URL         : http://www.postgis.net/
    Summary     : Geographic Information Systems Extensions to PostgreSQL
    Description :
    PostGIS adds support for geographic objects to the PostgreSQL object-relational
    database. In effect, PostGIS "spatially enables" the PostgreSQL server,
    allowing it to be used as a backend spatial database for geographic information
    systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS
    follows the OpenGIS "Simple Features Specification for SQL" and has been
    certified as compliant with the "Types and Functions" profile.
    

      

    4.登录数据库,创建postgis扩展

    create extension postgis;
    

      

     

  • 相关阅读:
    常见的排序算法--java版
    使用final关键字修饰一个变量时,是引用不能变,还是引用的对象不能变?
    在JAVA中如何跳出当前的多重嵌套循环
    说说&和&&的区别
    家族/亲戚(relation)
    面积(area)
    珍珠(bead)
    N皇后问题
    纪念品分组 2007年NOIP全国联赛普及组
    二叉树的序遍历
  • 原文地址:https://www.cnblogs.com/abclife/p/13818674.html
Copyright © 2011-2022 走看看