-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support rounding for .wkt_string()
#131
Comments
Note that this can turn valid polygons into invalid ones (with self-intersections). As prior art, PostGIS has a |
Another option could be a builder pattern: wkt::Formatter::new()
.with_pretty_print()
.with_max_decimal_digits(5)
.format(my_wkt) |
No, and my understanding is that its implementation is non-trivial so it's unlikely to be available in the short term (but PRs are very welcome) |
Hi! A feature I'd really like is supporting rounding to X decimal places in the
.wkt_string()
function.For example I can force the output to be
POINT (2.32 5.45)
.Maybe a second function like
wkt_string_rounded(prec: i32)
?I'm happy to work on this myself and PR but wanted to check if this would be something of interest first that would get merged in! Thanks!
The text was updated successfully, but these errors were encountered: