Skip to content

Commit

Permalink
[2.1.x] Updated GIS install instructions to use placeholders for GIS …
Browse files Browse the repository at this point in the history
…library versions.

Backport of ae26e0a from master
  • Loading branch information
brylie authored and timgraham committed Jun 12, 2018
1 parent a7cdf7a commit 4330d10
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
25 changes: 12 additions & 13 deletions docs/ref/contrib/gis/install/geolibs.txt
Expand Up @@ -98,16 +98,15 @@ internal geometry representation used by GeoDjango (it's behind the "lazy"
geometries). Specifically, the C API library is called (e.g., ``libgeos_c.so``) geometries). Specifically, the C API library is called (e.g., ``libgeos_c.so``)
directly from Python using ctypes. directly from Python using ctypes.


First, download GEOS 3.4.2 from the GEOS website and untar the source First, download GEOS from the GEOS website and untar the source archive::
archive::


$ wget http://download.osgeo.org/geos/geos-3.4.2.tar.bz2 $ wget http://download.osgeo.org/geos/geos-X.Y.Z.tar.bz2
$ tar xjf geos-3.4.2.tar.bz2 $ tar xjf geos-X.Y.Z.tar.bz2


Next, change into the directory where GEOS was unpacked, run the configure Next, change into the directory where GEOS was unpacked, run the configure
script, compile, and install:: script, compile, and install::


$ cd geos-3.4.2 $ cd geos-X.Y.Z
$ ./configure $ ./configure
$ make $ make
$ sudo make install $ sudo make install
Expand Down Expand Up @@ -159,15 +158,15 @@ reference systems.


First, download the PROJ.4 source code and datum shifting files [#]_:: First, download the PROJ.4 source code and datum shifting files [#]_::


$ wget http://download.osgeo.org/proj/proj-4.9.1.tar.gz $ wget http://download.osgeo.org/proj/proj-X.Y.Z.tar.gz
$ wget http://download.osgeo.org/proj/proj-datumgrid-1.5.tar.gz $ wget http://download.osgeo.org/proj/proj-datumgrid-X.Y.tar.gz


Next, untar the source code archive, and extract the datum shifting files in the Next, untar the source code archive, and extract the datum shifting files in the
``nad`` subdirectory. This must be done *prior* to configuration:: ``nad`` subdirectory. This must be done *prior* to configuration::


$ tar xzf proj-4.9.1.tar.gz $ tar xzf proj-X.Y.Z.tar.gz
$ cd proj-4.9.1/nad $ cd proj-X.Y.Z/nad
$ tar xzf ../../proj-datumgrid-1.5.tar.gz $ tar xzf ../../proj-datumgrid-X.Y.tar.gz
$ cd .. $ cd ..


Finally, configure, make and install PROJ.4:: Finally, configure, make and install PROJ.4::
Expand All @@ -189,9 +188,9 @@ supports :doc:`GDAL's vector data <../gdal>` capabilities [#]_.


First download the latest GDAL release version and untar the archive:: First download the latest GDAL release version and untar the archive::


$ wget http://download.osgeo.org/gdal/1.11.2/gdal-1.11.2.tar.gz $ wget http://download.osgeo.org/gdal/X.Y.Z/gdal-X.Y.Z.tar.gz
$ tar xzf gdal-1.11.2.tar.gz $ tar xzf gdal-X.Y.Z.tar.gz
$ cd gdal-1.11.2 $ cd gdal-X.Y.Z


Configure, make and install:: Configure, make and install::


Expand Down
12 changes: 6 additions & 6 deletions docs/ref/contrib/gis/install/spatialite.txt
Expand Up @@ -49,9 +49,9 @@ just skip this section.
To install from sources, download the latest amalgamation source archive from To install from sources, download the latest amalgamation source archive from
the `SQLite download page`__, and extract:: the `SQLite download page`__, and extract::


$ wget https://sqlite.org/sqlite-amalgamation-3.6.23.1.tar.gz $ wget https://www.sqlite.org/YYYY/sqlite-amalgamation-XXX0000.zip
$ tar xzf sqlite-amalgamation-3.6.23.1.tar.gz $ unzip sqlite-amalgamation-XXX0000.zip
$ cd sqlite-3.6.23.1 $ cd sqlite-amalgamation-XXX0000


Next, run the ``configure`` script -- however the ``CFLAGS`` environment variable Next, run the ``configure`` script -- however the ``CFLAGS`` environment variable
needs to be customized so that SQLite knows to build the R*Tree module:: needs to be customized so that SQLite knows to build the R*Tree module::
Expand All @@ -72,9 +72,9 @@ SpatiaLite library (``libspatialite``)
Get the latest SpatiaLite library source bundle from the Get the latest SpatiaLite library source bundle from the
`download page`__:: `download page`__::


$ wget https://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-4.1.0.tar.gz $ wget https://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-X.Y.Z.tar.gz
$ tar xaf libspatialite-4.1.0.tar.gz $ tar xaf libspatialite-X.Y.Z.tar.gz
$ cd libspatialite-4.1.0 $ cd libspatialite-X.Y.Z
$ ./configure $ ./configure
$ make $ make
$ sudo make install $ sudo make install
Expand Down

0 comments on commit 4330d10

Please sign in to comment.