Skip to content

Commit

Permalink
Use appendDump in Dump impl for GeometryCollection
Browse files Browse the repository at this point in the history
This will be more efficient, since we wouldn't have to copy the slice.
  • Loading branch information
peterstace committed Jul 17, 2021
1 parent a872966 commit dc52163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geom/type_geometry_collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ func (c GeometryCollection) forceOrientation(forceCW bool) GeometryCollection {
func (c GeometryCollection) Dump() []Geometry {
var gs []Geometry
for _, g := range c.geoms {
gs = append(gs, g.Dump()...)
gs = g.appendDump(gs)
}
return gs
}

0 comments on commit dc52163

Please sign in to comment.