1
0
mirror of https://github.com/django/django.git synced 2025-01-26 18:19:18 +00:00

Clarified return value of NumGeometries GIS function.

This commit is contained in:
Sergey Fedoseev 2017-03-17 18:03:30 +05:00 committed by Tim Graham
parent b536dcf656
commit 66bbde6819

View File

@ -381,7 +381,9 @@ Accepts a single geographic field or expression and returns the memory size
Accepts a single geographic field or expression and returns the number of
geometries if the geometry field is a collection (e.g., a ``GEOMETRYCOLLECTION``
or ``MULTI*`` field); otherwise returns ``None``.
or ``MULTI*`` field). Returns 1 for single geometries.
On MySQL, returns ``None`` for single geometries.
``NumPoints``
=============