Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

WKT precision encode error #28

Open
gPenzotti opened this issue May 20, 2020 · 0 comments
Open

WKT precision encode error #28

gPenzotti opened this issue May 20, 2020 · 0 comments

Comments

@gPenzotti
Copy link

While creating new polygon using wkt, the results (error free) change the precision and the value of the points.

polygon, err := geos.FromWKT("POLYGON ((11.1 44.1, 12 45, 13 46, 11.1 44.1))")
fmt.Println(polygon)

the result is:

POLYGON ((11.0999999999999996 44.1000000000000014, 12.0000000000000000 45.0000000000000000, 13.0000000000000000 46.0000000000000000, 11.0999999999999996 44.1000000000000014))

The points are different

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant