geometry.Geometry.copy#

Geometry.copy()#

Return a deep copy of the Geometry object.

Returns#

Geometry (or subclass) object

An object of the same class as the caller, having all the same data (for coords, prop, fields, and any other attributes possibly set by the subclass), but not sharing any data with the original object.

Note#

This is seldomly used, because it may cause wildly superfluous copying of data. Only used it if you absolutely require data that are independent of those of the caller.