Opened 9 years ago

Closed 9 years ago

#25951 closed Cleanup/optimization (fixed)

use trimmed EWKT for GEOSGeometry.__str__

Reported by: Sergey Fedoseev Owned by: Claude Paroz
Component: GIS Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In [14]: print Point(1, 1)
POINT (1.0000000000000000 1.0000000000000000)

These trailing zeros are quite annoying so I think we could use trimmed EWKT for __str__.
Not sure if we could/should use trimming for ewkt and wkt properties.

Change History (6)

comment:1 by Sergey Fedoseev, 9 years ago

Owner: changed from nobody to Sergey Fedoseev
Status: newassigned

comment:2 by Tim Graham, 9 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Claude Paroz, 9 years ago

Owner: changed from Sergey Fedoseev to Claude Paroz

comment:4 by Claude Paroz, 9 years ago

Has patch: set

comment:5 by Tim Graham, 9 years ago

Triage Stage: AcceptedReady for checkin

comment:6 by Claude Paroz <claude@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In 9686c88:

Fixed #25951 -- Trimmed default representation of GEOSGeometry

Thanks Sergey Fedoseev for the report.

Note: See TracTickets for help on using tickets.
Back to Top