1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #28696 -- Added GeometryType GIS database function and __geom_type lookup.

Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
Ahmed Ibrahim
2025-07-17 09:50:39 +03:00
committed by Mariusz Felisiak
parent 6aa05fd232
commit a5b0a618c3
9 changed files with 192 additions and 54 deletions

View File

@@ -635,6 +635,18 @@ Returns ``True`` if its value is a valid geometry and ``False`` otherwise.
MariaDB 12.0.1+ support was added.
``GeometryType``
----------------
.. versionadded:: 6.0
.. class:: GeometryType(expr)
*Availability*: `PostGIS <https://postgis.net/docs/GeometryType.html>`__,
Oracle 23c+, MariaDB, MySQL, SpatiaLite
Accepts a geographic field or expression and returns its geometry type.
``MemSize``
-----------