1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fix geos doctest issues

This commit is contained in:
Paolo Melchiorre 2024-11-27 21:18:17 +01:00
parent b02f65e40f
commit 925ab54f59
No known key found for this signature in database
GPG Key ID: 5F8222398E1ED035

View File

@ -1184,13 +1184,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.