mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #31014 -- Added srid argument to FromWKB/FromWKT() GIS functions.
This commit is contained in:
parent
7646b9023d
commit
10b31eea33
4 changed files with 50 additions and 16 deletions
|
@ -359,24 +359,36 @@ are returned unchanged.
|
|||
``FromWKB``
|
||||
===========
|
||||
|
||||
.. class:: FromWKB(expression, **extra)
|
||||
.. class:: FromWKB(expression, srid=0, **extra)
|
||||
|
||||
*Availability*: MariaDB, `MySQL
|
||||
<https://dev.mysql.com/doc/refman/en/gis-wkb-functions.html#function_st-geomfromwkb>`__,
|
||||
Oracle, `PostGIS <https://postgis.net/docs/ST_GeomFromWKB.html>`__, 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
|
||||
<https://dev.mysql.com/doc/refman/en/gis-wkt-functions.html#function_st-geomfromtext>`__,
|
||||
Oracle, `PostGIS <https://postgis.net/docs/ST_GeomFromText.html>`__, 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``
|
||||
===========
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue