Changes between Version 3 and Version 4 of UsersWikiPostGIS20Debian60src


Ignore:
Timestamp:
Apr 3, 2012, 1:08:10 AM (12 years ago)
Author:
Mike Taves
Comment:

bump versions; change requirements; reword template section

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostGIS20Debian60src

    v3 v4  
    77Install prerequisite packages using:
    88{{{
    9 sudo apt-get install build-essential postgresql-8.4 postgresql-server-dev-8.4 libxml2-dev proj libjson0-dev
     9sudo apt-get install build-essential postgresql-8.4 postgresql-server-dev-8.4 libxml2-dev proj libjson0-dev xsltproc docbook-xsl docbook-mathml
    1010}}}
    1111
     
    1414sudo apt-get install libgdal-dev
    1515}}}
    16 Optional packages for testing PostGIS:
    17 {{{
    18 sudo apt-get install libcunit1-dev
    19 }}}
    20 Optional packages for building documentation:
    21 {{{
    22 sudo apt-get install xsltproc docbook-xsl docbook-mathml imagemagick
    23 }}}
    24 (for building PDF documentation, add `dblatex`, but expect a large download)
    2516
    26 
    27 === Build GEOS 3.3.2 ===
     17=== Build GEOS 3.3.x ===
    2818PostGIS 2.0 requires GEOS >= 3.3.2 for topology support.
    2919
    3020There are multiple ways to build GEOS, but this is the simplest:
    3121{{{
    32 wget http://download.osgeo.org/geos/geos-3.3.2.tar.bz2
    33 tar xvfj geos-3.3.2.tar.bz2
    34 cd geos-3.3.2
     22wget http://download.osgeo.org/geos/geos-3.3.3.tar.bz2
     23tar xvfj geos-3.3.3.tar.bz2
     24cd geos-3.3.3
    3525./configure
    3626make
     
    4131== Build PostGIS ==
    4232{{{
    43 wget http://postgis.refractions.net/download/postgis-2.0.0beta4.tar.gz
    44 tar xfvz postgis-2.0.0beta4.tar.gz
    45 cd postgis-2.0.0beta4
     33wget http://postgis.refractions.net/download/postgis-2.0.0rc2.tar.gz
     34tar xfvz postgis-2.0.0rc2.tar.gz
     35cd postgis-2.0.0rc2
    4636}}}
    4737PostGIS 2.0 can be configured to disable topology or raster extensions, using the configure flags `--without-raster` and `--without-topology`. The default is to build both extensions:
     
    6151}}}
    6252
    63 == Template ==
    64 Complete a post-install by creating a template, which can be re-used for creating multiple spatially-enabled databases. Or if you just want to make one spatially enabled database, you can modify the commands for your needs.
     53== Using enabler scripts ==
    6554
    66 Log-in as `postgres` from `root` using "`su - postgres`", and use the following commands:
     55Enabler scripts can be used to either build a template, or directly spatially enable a database.
     56
     57The following example creates a template, which can be re-used for creating multiple spatially-enabled databases. Or if you just want to make one spatially enabled database, you can modify the commands for your needs.
     58
     59Log-in as `postgres` from `root` using "`su - postgres`", and use the following commands. Install PostGIS:
    6760{{{
    6861createdb template_postgis
     
    7366}}}
    7467
    75 === Enable raster extension ===
    76 Adding on to `template_postgis`:
     68with raster support:
    7769{{{
    7870psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis-2.0/rtpostgis.sql
     
    8072}}}
    8173
    82 === Enable topology extension ===
    83 Adding on to `template_postgis`:
     74with topology support:
    8475{{{
    8576psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis-2.0/topology.sql