User Tools

Site Tools


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

Table of Contents

TGIS_LayerVector.MergeLayer(TGIS_LayerVector, TGIS_Extent, TGIS_ShapeType, string, bool, bool) method

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

Merge layer from an existing layer.

Available also on: Delphi | Java | ActiveX.

Syntax

// C#
public void MergeLayer(
  TGIS_LayerVector _layer,
  TGIS_Extent _extent,
  TGIS_ShapeType _type,
  string _scope,
  bool _truncated,
  bool _restrict
);
' VisualBasic
Public Sub MergeLayer(
  ByVal _layer As TGIS_LayerVector,
  ByVal _extent As TGIS_Extent,
  ByVal _type As TGIS_ShapeType,
  ByVal _scope As String,
  ByVal _truncated As Boolean,
  ByVal _restrict As Boolean
)
// Oxygene
public
  procedure MergeLayer(
    _layer : TGIS_LayerVector;
    _extent : TGIS_Extent;
    _type : TGIS_ShapeType;
    _scope : String;
    _truncated : Boolean;
    _restrict : Boolean
  );

Parameters

Name Type Description
_layer TGIS_LayerVector layer to be imported
_extent TGIS_Extent starting extent of layer - can't be zero sized
_type TGIS_ShapeType shape type supported by a layer; if gistypeUnknown is used then import will try to recognize shape on its own;
_scope string
String
SQL query for which shape will be imported
_truncated bool
Boolean
if True, then all shapes will be truncated in _extent; if False, only the shape visible in _extent will be imported ;
_restrict bool
Boolean
if True, any field structure modification will raise error, otherwise allow to resize fields

Remarks

Remember to assign 'path' property to layer you want to import from for proper import a new layer to file.
Use this method to merge layers. Before the merge SaveData will be fired.

2019/02/08 01:32