Skip to content
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 for writing WKT with precision #199

Open
kylebarron opened this issue Mar 1, 2024 · 0 comments
Open

Support for writing WKT with precision #199

kylebarron opened this issue Mar 1, 2024 · 0 comments

Comments

@kylebarron
Copy link
Member

It doesn't appear that there's currently a way to write WKT values with a given precision?

I'm implementing "display methods" in geoarrow so that Python users can have a better display in a terminal than

<geoarrow.rust.core._rust.MultiPolygonArray at 0x10a12e9a0>

and in this use case, having too many decimals of precision is distracting. E.g. shapely gives a "repr" of

image

It looks like this format! would have to be changed?

self.out.write_all(format!("{x} {y}").as_bytes())?;

Ref https://stackoverflow.com/a/49778870

@kylebarron kylebarron changed the title Write WKT with precision Support for writing WKT with precision Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant