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

Fixed #25951 -- Trimmed default representation of GEOSGeometry

Thanks Sergey Fedoseev for the report.
This commit is contained in:
Claude Paroz
2016-04-16 20:05:47 +02:00
parent d29d11b026
commit 9686c888d6
6 changed files with 35 additions and 23 deletions

View File

@@ -408,7 +408,7 @@ class GEOSGeometry(GEOSBase, ListMixin):
@property
def wkt(self):
"Returns the WKT (Well-Known Text) representation of this Geometry."
return wkt_w(dim=3 if self.hasz else 2).write(self).decode()
return wkt_w(dim=3 if self.hasz else 2, trim=True).write(self).decode()
@property
def hex(self):