User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_layervector.scope

Table of Contents

TGIS_LayerVector.Scope property

Syntax

// Delphi
public
  property Scope : String read write;
// C++ Builder
public:
  __property UnicodeString Scope = {read, write};

Value

Type
String

Remarks

Use this property as a SQL-like query (WHERE clause) to limit active layer objects. Treat is as a filter.

Example

Here is example how to limit processed shapes by using Scope property.

Delphi

var
  layerObj : TGIS_LayerVector ;
 
procedure MyClass.FormCreate();
begin
  // create a layer
  layerObj := TGIS_LayerVector.Create ;
  layerObj.Name := 'output' ;
  layerObj.Params.Area.Color := clRed ;
 
  // add it to the viewer
  GIS.Add( layerObj ) ;
 
  // but here we disactivate it using scope
  layerObj.Scope:='name<>output';
  GIS.FullExtent ;
end;
2019/08/13 10:50