From 10b31eea337261ba724a71839ebc4bd4ddac3675 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sun, 10 Mar 2024 20:12:30 +0100 Subject: Refs #31014 -- Added srid argument to FromWKB/FromWKT() GIS functions. --- docs/ref/contrib/gis/functions.txt | 20 ++++++++++++++++---- docs/releases/5.1.txt | 5 +++++ 2 files changed, 21 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/ref/contrib/gis/functions.txt b/docs/ref/contrib/gis/functions.txt index f55d314b3f..3fff7eeb50 100644 --- a/docs/ref/contrib/gis/functions.txt +++ b/docs/ref/contrib/gis/functions.txt @@ -359,24 +359,36 @@ are returned unchanged. ``FromWKB`` =========== -.. class:: FromWKB(expression, **extra) +.. class:: FromWKB(expression, srid=0, **extra) *Availability*: MariaDB, `MySQL `__, Oracle, `PostGIS `__, SpatiaLite -Creates geometry from `Well-known binary (WKB)`_ representation. +Creates geometry from `Well-known binary (WKB)`_ representation. The optional +``srid`` argument allows to specify the SRID of the resulting geometry. +``srid`` is ignored on Oracle. + +.. versionchanged:: 5.1 + + The ``srid`` argument was added. ``FromWKT`` =========== -.. class:: FromWKT(expression, **extra) +.. class:: FromWKT(expression, srid=0, **extra) *Availability*: MariaDB, `MySQL `__, Oracle, `PostGIS `__, SpatiaLite -Creates geometry from `Well-known text (WKT)`_ representation. +Creates geometry from `Well-known text (WKT)`_ representation. The optional +``srid`` argument allows to specify the SRID of the resulting geometry. +``srid`` is ignored on Oracle. + +.. versionchanged:: 5.1 + + The ``srid`` argument was added. ``GeoHash`` =========== diff --git a/docs/releases/5.1.txt b/docs/releases/5.1.txt index 5fe2be96c8..2dbacf08f7 100644 --- a/docs/releases/5.1.txt +++ b/docs/releases/5.1.txt @@ -101,6 +101,11 @@ Minor features * :attr:`.OGRGeometry.centroid` is now available on all supported geometry types. +* :class:`FromWKB() ` and + :class:`FromWKT() ` functions + now support the optional ``srid`` argument (except for Oracle where it is + ignored). + :mod:`django.contrib.messages` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.3