Closed thomascoquet closed 10 months ago
This is unlikely to be possible as Bounds
uses a different underlying representation to a geom.T
and its coordinates are not stored directly.
If you want to convert a Bounds
to a geom.T
you can use the existing Bounds.Polygon
method.
Hi,
First of all, thanks for the library.
I was using the
geom.Bounds
object recently and was thinking that it would be a nice addition if it implemented thegeom.T
interface.For example, one could set a SRID for a
Bounds
object (why shouldn't it have one? ;-) ). Could behave as a polygon with four vertices forFlatCoords()
,Ends()
,Endss()
.Happy to submit a PR if you're interested. Thomas