zoukankan      html  css  js  c++  java
  • 安装postgis

    --安装Postgis
    yum install postgresql96.x86_64 postgresql96-server.x86_64 postgresql96-libs.x86_64 postgresql96-contrib.x86_64 postgresql96-devel.x86_64
    yum install postgis2_96.x86_64
    yum install pgrouting_96
    yum install ogr_fdw96

    --安装扩展

    su - postgres
     psql -U postgres
    create database pendingdata;
    c pendingdata;

    # Enable PostGIS (includes raster)
    spatial_testdb=# CREATE EXTENSION postgis;
    # Enable Topology
    spatial_testdb=# CREATE EXTENSION postgis_topology;
    # enable ogrfdw
    spatial_testdb=# CREATE EXTENSION ogr_fdw;

    验证PostGis是否安装成功 
    SELECT postgis_full_version();

    [root@open-uat ~]# su - postgres
    上一次登录:四 8月 2 19:47:36 CST 2018pts/0 上
    -bash-4.2$ psql -d testdata
    psql (9.6.9)
    输入 "help" 来获取帮助信息.

    testdata=# SELECT postgis_full_version();
    postgis_full_version
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    POSTGIS="2.4.4 r16526" PGSQL="96" GEOS="3.6.2-CAPI-1.10.2 4d2925d6" PROJ="Rel. 4.9.3, 15 August 2016" GDAL="GDAL 1.11.4, released 2016/01/25" LIBXML="2.9.1" LIBJSON="0.11" RASTER
    (1 行记录)

  • 相关阅读:
    c++的const总结
    http框架--Forest 的使用
    SQL 语句大全
    Mysql 总结
    【Spring注解驱动开发】使用@Scope注解设置组件的作用域
    注册中心EUREKA(二)--配置列表
    Linux命令发送Http GET/POST请求
    真正理解NIO
    高并发下接口幂等性解决方案
    代码量统计工具
  • 原文地址:https://www.cnblogs.com/yf001/p/13043698.html
Copyright © 2011-2022 走看看