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

  • 相关阅读:
    PMD安装使用
    FindBugs安装使用
    Checkstyle安装使用
    SourceMonitor的基本使用教程
    论文选题
    github for Test
    Junit的安装与使用
    安装并使用PICT,生成测试用例
    安装并使用CheckStyle/PMD与FindBug && 安装并使用SourceMonitor检测代码复杂度
    github账号 及文章选题
  • 原文地址:https://www.cnblogs.com/yf001/p/13043698.html
Copyright © 2011-2022 走看看