mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Merge 925ab54f59
into 6df19412aa
This commit is contained in:
commit
cb0f640e8a
2 changed files with 4 additions and 3 deletions
|
@ -44,6 +44,7 @@ needs_sphinx = "4.5.0"
|
|||
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
||||
extensions = [
|
||||
"djangodocs",
|
||||
"sphinx.ext.doctest",
|
||||
"sphinx.ext.extlinks",
|
||||
"sphinx.ext.intersphinx",
|
||||
"sphinx.ext.autosectionlabel",
|
||||
|
|
|
@ -1191,13 +1191,13 @@ include the SRID value (in other words, EWKB).
|
|||
>>> print(wkt_w.precision)
|
||||
None
|
||||
>>> wkt_w.write(pnt)
|
||||
'POINT (1.4399999999999999 1.6599999999999999)'
|
||||
b'POINT (1.4399999999999999 1.6599999999999999)'
|
||||
>>> wkt_w.precision = 0
|
||||
>>> wkt_w.write(pnt)
|
||||
'POINT (1 2)'
|
||||
b'POINT (1 2)'
|
||||
>>> wkt_w.precision = 1
|
||||
>>> wkt_w.write(pnt)
|
||||
'POINT (1.4 1.7)'
|
||||
b'POINT (1.4 1.7)'
|
||||
|
||||
.. rubric:: Footnotes
|
||||
.. [#fnogc] *See* `PostGIS EWKB, EWKT and Canonical Forms <https://postgis.net/docs/using_postgis_dbmanagement.html#EWKB_EWKT>`_, PostGIS documentation at Ch. 4.1.2.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue