Changes between Version 5 and Version 6 of UsersWikiPostGIS20Ubuntu1004src


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

bump versions; change requirements; reword template

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostGIS20Ubuntu1004src

    v5 v6  
    66Install prerequisite packages using:
    77{{{
    8 sudo apt-get install build-essential postgresql-8.4 postgresql-server-dev-8.4 libxml2-dev proj libjson0-dev
     8sudo apt-get install build-essential postgresql-8.4 postgresql-server-dev-8.4 libxml2-dev proj libjson0-dev xsltproc docbook-xsl docbook-mathml
    99}}}
    1010
     
    1414}}}
    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)
    25 
    26 === Build GEOS 3.3.2 ===
     16=== Build GEOS 3.3.x ===
    2717PostGIS 2.0 requires GEOS >= 3.3.2 for topology support.
    2818
    2919There are multiple ways to build GEOS, but this is the simplest:
    3020{{{
    31 wget http://download.osgeo.org/geos/geos-3.3.2.tar.bz2
    32 tar xvfj geos-3.3.2.tar.bz2
    33 cd geos-3.3.2
     21wget http://download.osgeo.org/geos/geos-3.3.3.tar.bz2
     22tar xvfj geos-3.3.3.tar.bz2
     23cd geos-3.3.3
    3424./configure
    3525make
     
    4030== Build PostGIS ==
    4131{{{
    42 wget http://postgis.refractions.net/download/postgis-2.0.0beta4.tar.gz
    43 tar xfvz postgis-2.0.0beta4.tar.gz
    44 cd postgis-2.0.0beta4
     32wget http://postgis.refractions.net/download/postgis-2.0.0rc2.tar.gz
     33tar xfvz postgis-2.0.0rc2.tar.gz
     34cd postgis-2.0.0rc2
    4535}}}
    46 PostGIS 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:
     36
     37PostGIS 2.0 can be configured to disable topology or raster support, using the configure flags `--without-raster` and `--without-topology`. The default is to build both:
    4738{{{
    4839./configure
     
    6051}}}
    6152
    62 == Template ==
    63 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 ==
     54
     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
     59PostGIS:
    6460{{{
    6561sudo -u postgres createdb template_postgis
     
    7066}}}
    7167
    72 === Enable raster extension ===
    73 Adding on to `template_postgis`:
     68with raster support:
    7469{{{
    7570sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis-2.0/rtpostgis.sql
     
    7772}}}
    7873
    79 === Enable topology extension ===
    80 Adding on to `template_postgis`:
     74with topology support:
    8175{{{
    8276sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis-2.0/topology.sql