User Tools

Site Tools


Table of Contents

ITGIS_LayerVector.ImportLayer_2 method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_LayerVector.ImportLayer_2 | Methods | Properties

Imports a layer from an existing layer.

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


// C#
public void ImportLayer_2(
  ITGIS_LayerVector _layer,
  ITGIS_Extent _extent,
  TGIS_ShapeType _type,
  WideString _scope,
  ITGIS_Shape _shape,
  WideString _de9im,
  WordBool _truncated
' VisualBasic
Public Sub ImportLayer_2(
  ByVal _layer As ITGIS_LayerVector,
  ByVal _extent As ITGIS_Extent,
  ByVal _type As TGIS_ShapeType,
  ByVal _scope As WideString,
  ByVal _shape As ITGIS_Shape,
  ByVal _de9im As WideString,
  ByVal _truncated As WordBool
// Oxygene
  procedure ImportLayer_2(
    _layer : ITGIS_LayerVector;
    _extent : ITGIS_Extent;
    _type : TGIS_ShapeType;
    _scope : WideString;
    _shape : ITGIS_Shape;
    _de9im : WideString;
    _truncated : WordBool


Name Type Description
_layer ITGIS_LayerVector layer to be imported
_extent ITGIS_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 WideString SQL query for which shape will be imported
_shape ITGIS_Shape if not nil, then only shapes matched _de9im matrix with _shape will be found
_de9im WideString DE-9IM matrix of comparison
_truncated WordBool if True, then all shapes will be truncated in _extent; if False, only the shape visible in _extent will be imported ;


Remember to assign 'path' property to the layer you want to import from, for proper import of the new layer to a file.
Use this method to import a layer. To do this, simply create a new layer, choose a layer to import from and use ImportLayer method with proper params. See also the opposite method, ExportLayer.

2022/11/16 01:10

Page Tools