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 行记录)

  • 相关阅读:
    介绍自己
    第六周作业
    第五周作业
    第四周作业
    秋季学期学习总结
    币值转化
    justintime compiler
    PostgreSQL windows下安装出现问题的解决办法
    Java语言的异常处理,完全理解下面4点就可以了
    Ultraedit用途【来自网络】
  • 原文地址:https://www.cnblogs.com/yf001/p/13043698.html
Copyright © 2011-2022 走看看