Skip to content

Support for writing WKT with precision #199

@kylebarron

Description

@kylebarron

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions