Made some small tweaks to GeoDjango docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17489 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e41647a522
commit
8d381acb24
|
@ -8,7 +8,7 @@ Overview
|
||||||
========
|
========
|
||||||
In general, GeoDjango installation requires:
|
In general, GeoDjango installation requires:
|
||||||
|
|
||||||
1. Python and :ref:`django`
|
1. :ref:`Python and Django <django>`
|
||||||
2. :ref:`spatial_database`
|
2. :ref:`spatial_database`
|
||||||
3. :ref:`geospatial_libs`
|
3. :ref:`geospatial_libs`
|
||||||
|
|
||||||
|
@ -624,10 +624,9 @@ Troubleshooting
|
||||||
If you can't find the solution to your problem here then participate in the
|
If you can't find the solution to your problem here then participate in the
|
||||||
community! You can:
|
community! You can:
|
||||||
|
|
||||||
* Join the ``#geodjango`` IRC channel on FreeNode (may be accessed on the
|
* Join the ``#geodjango`` IRC channel on FreeNode. Please be patient and polite
|
||||||
Web via `Mibbit`__). Please be patient and polite -- while you may not
|
-- while you may not get an immediate response, someone will attempt to answer
|
||||||
get an immediate response, someone will attempt to answer your question
|
your question as soon as they see it.
|
||||||
as soon as they see it.
|
|
||||||
* Ask your question on the `GeoDjango`__ mailing list.
|
* Ask your question on the `GeoDjango`__ mailing list.
|
||||||
* File a ticket on the `Django trac`__ if you think there's a bug. Make
|
* File a ticket on the `Django trac`__ if you think there's a bug. Make
|
||||||
sure to provide a complete description of the problem, versions used,
|
sure to provide a complete description of the problem, versions used,
|
||||||
|
@ -906,10 +905,10 @@ Ubuntu & Debian GNU/Linux
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
The PostGIS SQL files are not placed the PostgreSQL share directory in the
|
The PostGIS SQL files are not placed in the PostgreSQL share directory in
|
||||||
Debian and Ubuntu packages, and are located instead special directory
|
the Debian and Ubuntu packages, and are located instead in a special
|
||||||
depending on the release. Thus, when :ref:`spatialdb_template` use the
|
directory depending on the release. Thus, when :ref:`spatialdb_template`
|
||||||
:download:`create_template_postgis-debian.sh` script instead
|
use the :download:`create_template_postgis-debian.sh` script instead.
|
||||||
|
|
||||||
.. _ubuntu:
|
.. _ubuntu:
|
||||||
|
|
||||||
|
@ -1012,7 +1011,8 @@ Binary Packages
|
||||||
The following command will install acceptable binary packages, as well as
|
The following command will install acceptable binary packages, as well as
|
||||||
the development tools necessary to build the rest of the requirements::
|
the development tools necessary to build the rest of the requirements::
|
||||||
|
|
||||||
$ sudo apt-get install binutils bzip2 gcc g++ flex make postgresql-8.1 postgresql-server-dev-8.1 python-ctypes python-psycopg2 python-setuptools
|
$ sudo apt-get install binutils bzip2 gcc g++ flex make postgresql-8.1 \
|
||||||
|
postgresql-server-dev-8.1 python-ctypes python-psycopg2 python-setuptools
|
||||||
|
|
||||||
Required package information:
|
Required package information:
|
||||||
|
|
||||||
|
@ -1043,7 +1043,9 @@ directions carefully.
|
||||||
This version is comparable to Ubuntu :ref:`ibex`, so the command
|
This version is comparable to Ubuntu :ref:`ibex`, so the command
|
||||||
is very similar::
|
is very similar::
|
||||||
|
|
||||||
$ sudo apt-get install binutils libgdal1-1.5.0 postgresql-8.3 postgresql-8.3-postgis postgresql-server-dev-8.3 python-psycopg2 python-setuptools
|
$ sudo apt-get install binutils libgdal1-1.5.0 postgresql-8.3 \
|
||||||
|
postgresql-8.3-postgis postgresql-server-dev-8.3 \
|
||||||
|
python-psycopg2 python-setuptools
|
||||||
|
|
||||||
This assumes that you are using PostgreSQL version 8.3. Else, replace ``8.3``
|
This assumes that you are using PostgreSQL version 8.3. Else, replace ``8.3``
|
||||||
in the above command with the appropriate PostgreSQL version.
|
in the above command with the appropriate PostgreSQL version.
|
||||||
|
@ -1072,7 +1074,8 @@ Debian 5.0 . Thus when :ref:`spatialdb_template` either:
|
||||||
|
|
||||||
* Create a symbolic link to these files::
|
* Create a symbolic link to these files::
|
||||||
|
|
||||||
$ sudo ln -s /usr/share/postgresql-8.3-postgis/{lwpostgis,spatial_ref_sys}.sql /usr/share/postgresql/8.3
|
$ sudo ln -s /usr/share/postgresql-8.3-postgis/{lwpostgis,spatial_ref_sys}.sql \
|
||||||
|
/usr/share/postgresql/8.3
|
||||||
|
|
||||||
If not running PostgreSQL 8.3, then replace ``8.3`` in the command above with the correct version.
|
If not running PostgreSQL 8.3, then replace ``8.3`` in the command above with the correct version.
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ create the database from a :ref:`spatial database template
|
||||||
$ createuser --createdb geo
|
$ createuser --createdb geo
|
||||||
$ exit
|
$ exit
|
||||||
|
|
||||||
Replace ``geo`` to correspond to the system login user name will be
|
Replace ``geo`` with the system login user name that will be
|
||||||
connecting to the database. For example, ``johndoe`` if that is the
|
connecting to the database. For example, ``johndoe`` if that is the
|
||||||
system user that will be running GeoDjango.
|
system user that will be running GeoDjango.
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ shapefiles (or other vector data sources):
|
||||||
using driver `ESRI Shapefile' successful.
|
using driver `ESRI Shapefile' successful.
|
||||||
1: TM_WORLD_BORDERS-0.3 (Polygon)
|
1: TM_WORLD_BORDERS-0.3 (Polygon)
|
||||||
|
|
||||||
Here ``ogrinfo`` is telling us that the shapefile has one layer, and that
|
Here ``ogrinfo`` is telling us that the shapefile has one layer, and that such
|
||||||
layer contains polygon data. To find out more we'll specify the layer name
|
layer contains polygon data. To find out more we'll specify the layer name
|
||||||
and use the ``-so`` option to get only important summary information:
|
and use the ``-so`` option to get only important summary information:
|
||||||
|
|
||||||
|
@ -355,7 +355,7 @@ tutorial, then we can determine the path using Python's built-in
|
||||||
``os`` module::
|
``os`` module::
|
||||||
|
|
||||||
>>> import os
|
>>> import os
|
||||||
>>> from geodjango import world
|
>>> import world
|
||||||
>>> world_shp = os.path.abspath(os.path.join(os.path.dirname(world.__file__),
|
>>> world_shp = os.path.abspath(os.path.join(os.path.dirname(world.__file__),
|
||||||
... 'data/TM_WORLD_BORDERS-0.3.shp'))
|
... 'data/TM_WORLD_BORDERS-0.3.shp'))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue