User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_layervector.addshape_tgis_shape_boolean

TGIS_LayerVector.AddShape(TGIS_Shape, bool) method

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

Add a new shape (a copy) and make it editable.

Available also on: Delphi | Java | ActiveX.

Syntax

// 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
public
  function AddShape(
    _shape : TGIS_Shape;
    _copyfield : Boolean
  ) : TGIS_Shape;

Parameters

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

Result

Type Description
TGIS_Shape Created copy of shape or nil.

Remarks

Use this method to add a new copy of shape. Depending on _copyfield param some field structure is being copied to new shape.

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

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

References

2019/07/26 01:15