On 24 June 2016 at 00:36, Harasty, Daniel J <dhara...@appcomsci.com> wrote: > I have an application where the full WKT representation of double-precision > floats is undesirable. > > It seems that WKTWriter has an optional, keyword argument to set the > “rounding_precision”. Great! Just what I need! > ... > How can I pass the “rounding_precision” kwarg to the property getter?
Hi Dan, Easy, set this in the 'defaults' dict: WKTWriter.defaults['rounding_precision'] = 8 print(p1) # POLYGON ((0 0, 10.1 0, 10.333333 10, 0 10, 0 0)) _______________________________________________ Community mailing list Community@lists.gispython.org http://lists.gispython.org/mailman/listinfo/community