DK for Delphi | GisLayerVector.TGIS_Shape.CreateCopy | Constructors | Fields | Methods | Properties
Create an independent deep copy of the shape geometry, attributes, and style state.
// Delphi public function CreateCopy : TGIS_Shape; virtual;
// C++ Builder public: virtual TGIS_Shape* CreateCopy(void);
| Type | Description |
|---|---|
| TGIS_Shape | New shape instance containing a deep copy of the current shape. |
PURPOSE: Duplicate a shape so it can be edited, stored, or used in undo/redo workflows without modifying the original geometry.
BEHAVIOR: Copies the shape geometry, field values, and style- related properties into a new instance. The copied shape is not added to any layer or spatial index automatically.
CONSTRAINTS: The caller owns the returned shape instance. Large or multipart geometry may require substantial additional memory.