Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.3.X] Fixed link to SpatiaLite 2.x initial SQL files.

Backport of [17491] and [17496] from trunk. Refs #17554.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@17498 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2646df45374d7c9054adda998e64f3beb6ae6f62 1 parent a7a703d
@ramiro ramiro authored
Showing with 22 additions and 11 deletions.
  1. +22 −11 docs/ref/contrib/gis/install.txt
View
33 docs/ref/contrib/gis/install.txt
@@ -572,15 +572,30 @@ Creating a Spatial Database for SpatiaLite
-------------------------------------------
After the SpatiaLite library and tools have been installed, it is now possible
-to create spatial database for use with GeoDjango. In order to do this, download
-the spatial database initialization SQL from the `SpatiaLite Resources`__ page::
+to create a spatial database for use with GeoDjango.
- $ wget http://www.gaia-gis.it/spatialite/init_spatialite-2.3.sql.gz
+For this, a number of spatial metadata tables must be created in the database
+before any spatial query is performed against it. You need to download a
+database initialization file and execute the SQL queries it contains against
+your database.
+
+First, get it from the appropiate SpatiaLite Resources page (i.e.
+http://www.gaia-gis.it/spatialite-2.3.1/resources.html for 2.3 or
+http://www.gaia-gis.it/spatialite-2.4.0/ for 2.4)::
+
+ $ wget http://www.gaia-gis.it/spatialite-2.3.1/init_spatialite-2.3.sql.gz
$ gunzip init_spatialite-2.3.sql.gz
+(Or, if you are using SpatiaLite 2.4 then do::
+
+ $ wget http://www.gaia-gis.it/spatialite-2.4.0/init_spatialite-2.4.sql.gz
+ $ gunzip init_spatialite-2.4.sql.gz
+
+)
+
Now, the ``spatialite`` command can be used to initialize a spatial database::
- $ spatialite geodjango.db < init_spatialite-2.3.sql
+ $ spatialite geodjango.db < init_spatialite-2.X.sql
.. note::
@@ -588,10 +603,6 @@ Now, the ``spatialite`` command can be used to initialize a spatial database::
you want to use. Use the same in the :setting:`DATABASE_NAME`
inside your ``settings.py``.
-
-__ http://www.gaia-gis.it/spatialite/resources.html
-
-
Add ``django.contrib.gis`` to :setting:`INSTALLED_APPS`
-------------------------------------------------------
@@ -1110,7 +1121,7 @@ Python
^^^^^^
First, download the latest `Python 2.7 installer`__ from the Python Web site.
-Next, run the installer and keep the defaults -- for example, keep
+Next, run the installer and keep the defaults -- for example, keep
'Install for all users' checked and the installation path set as
``C:\Python27``.
@@ -1165,7 +1176,7 @@ tree and select :menuselection:`PostGIS 1.5 for PostgreSQL 9.0`.
After clicking next, you will be prompted to select your mirror, PostGIS
will be downloaded, and the PostGIS installer will begin. Select only the
-default options during install (e.g., do not uncheck the option to create a
+default options during install (e.g., do not uncheck the option to create a
default PostGIS database).
.. note::
@@ -1216,7 +1227,7 @@ executable with ``cmd.exe``, will set this up::
reg ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v PROJ_LIB /t REG_EXPAND_SZ /f /d "%PROJ_LIB%"
For your convenience, these commands are available in the execuatble batch
-script, :download:`geodjango_setup.bat`.
+script, :download:`geodjango_setup.bat`.
.. note::
Please sign in to comment.
Something went wrong with that request. Please try again.