georust/wkt

make Wkt<T> display

queer-emma opened this issue · 3 comments

I was trying to find out how to get a Wkt to actually convert to a string. Is there a reason why it doesn't implement Display? It seems, instead i have to do ẁkt.item.to_string() - which I find counter-intuitive.

Until recently, a single Wkt values could represent multiple geometries, which would have posed some problems when implementing ToString. But adding it now seems quite reasonable.

This makes sense now. I just couldn't figure out why the README says that you can encode WKT strings, but there is no method for it. I didn't see that the individual types are Display, and i also just wanted to encode the Wkt<_>.

Fixed by @categulario in #86