Opened 9 years ago

Closed 9 years ago

#25869 closed New feature (fixed)

add support for GEOSWKTWriter_setRoundingPrecision and GEOSWKTWriter_setTrim

Reported by: Sergey Fedoseev Owned by: Sergey Fedoseev
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 (last modified by Sergey Fedoseev)

It would be useful to have support of GEOSWKTWriter_setRoundingPrecision and GEOSWKTWriter_setTrim functions that allow to control output of fractional part in WKT.

I think that GEOSGeometry.wkt should be trimmed because this trailing zeroes are quite annoying:

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

but this probably should go in another ticket.

Change History (7)

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

I assume this makes sense but a brief description describing the feature is always helpful. :-)

comment:3 by Sergey Fedoseev, 9 years ago

Description: modified (diff)
Has patch: set

comment:4 by Sergey Fedoseev, 9 years ago

Patch needs improvement: set

I decided to rework patch a bit.

comment:5 by Sergey Fedoseev, 9 years ago

Patch needs improvement: unset

comment:6 by Tim Graham, 9 years ago

Triage Stage: AcceptedReady for checkin

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

Resolution: fixed
Status: assignedclosed

In c984e2b:

Fixed #25869 -- Added trim and precision properties to WKTWriter.

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