summaryrefslogtreecommitdiff
path: root/docs/ref/contrib/gis/tutorial.txt
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-09-15 11:56:39 +0200
committerClaude Paroz <claude@2xlibre.net>2012-09-15 12:02:28 +0200
commit65793d714ca6b03d2cd0fcfeec54652396f7ab48 (patch)
tree218c118694db8a513d13f08262d2db6b5a300693 /docs/ref/contrib/gis/tutorial.txt
parentabfba3bb65c9a28ca3756ec5d091e2e8561fc450 (diff)
Used ST_AsText for testing PostGIS raw query
AsText will not be supported in further versions of PostGIS (>=2).
Diffstat (limited to 'docs/ref/contrib/gis/tutorial.txt')
-rw-r--r--docs/ref/contrib/gis/tutorial.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt
index 15863aee7b..ec265342b3 100644
--- a/docs/ref/contrib/gis/tutorial.txt
+++ b/docs/ref/contrib/gis/tutorial.txt
@@ -674,8 +674,8 @@ __ http://spatialreference.org/ref/epsg/32140/
.. admonition:: Raw queries
When using :doc:`raw queries </topics/db/sql>`, you should generally wrap
- your geometry fields with the ``asText()`` SQL function so as the field
- value will be recognized by GEOS::
+ your geometry fields with the ``asText()`` SQL function (or ``ST_AsText``
+ for PostGIS) so as the field value will be recognized by GEOS::
City.objects.raw('SELECT id, name, asText(point) from myapp_city')