You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using DP geometry simplification I noted that the shadow method tranformCollection() in Tranformer obscure the call at a missing method in DPTransformer and the call at space.Geometry.Simplify() doesn't work in case of geometry collection.
I suppose the following method has to be added for DPTransformer.
func (d *DPTransformer) transformCollection(geom matrix.Collection, parent matrix.Steric) matrix.Steric {
transGeoms := matrix.Collection{}
for _, v := range geom {
transformGeom, _ := d.Transform(v)
if transformGeom == nil {
continue
}
if d.pruneEmptyGeometry && transformGeom.IsEmpty() {
continue
}
transGeoms = append(transGeoms, transformGeom)
}
return transGeoms
}