User Tools

Site Tools


TGIS_LayerVector.AddShape(TGIS_Shape, bool) method

DK11 for .NET | TatukGIS.NDK.TGIS_LayerVector.AddShape | Overloads | Constructors | Fields | Methods | Properties | Events

Adds a copy of shape and makes it editable.

Available also on: Delphi | Java | ActiveX | Python.


// C#
public TGIS_Shape AddShape(
  TGIS_Shape _shape,
  bool _copyfield
' VisualBasic
Public Function AddShape(
  ByVal _shape As TGIS_Shape,
  ByVal _copyfield As Boolean
) As TGIS_Shape
// Oxygene
  function AddShape(
    _shape : TGIS_Shape;
    _copyfield : Boolean
  ) : TGIS_Shape;


Name Type Description
_shape TGIS_Shape shape to be added
_copyfield bool
if True, then all fields will be copied (and created if necessary). Default value is False.


Type Description
TGIS_Shape Created copy of shape or nil.


Use this method to add a new copy of a shape. Depending on _copyfield param, the same field structure is copied to the new shape.

To add a shape, simply create a new shape, choose a layer to export it to, and use ImportLayer method with proper params.

This function creates a copy of a shape passed as a parameter.


2022/11/16 01:34

Page Tools