Closed chosia closed 1 year ago
The github.com/twpayne/go-geom/xy
package only supports 2D geometries. For 3D geometries, use the github.com/twpayne/go-geom/xyz
package, which is currently only has a few functions implemented. Contributions are of course welcome :)
To further clarify on this: the methods on geom.T
only work in 2D.
Hopefully this answers your question.
Hi there,
I'm trying to use Area() on 3D vertical polygons and the result is 0. I stepped through the code and it seems the Z coordinate is ignored. Is this how it's supposed to be? For example I'm using a poly with the following flat coords: [112,55,2,112,55,5,112,57,4.5,112,57,2,112,55,2], no holes, layout is XYZ. The Area returned is 0.
Thanks, Gosia.