Field-Map Scripting

4.16.6 ReclassifyTable

ReclassifyTable function


Prototype:

function ReclassifyTable :(TableOrLayer :TObjectWrapper; const OldAttributeName_,NewAttributeName_ :string) :boolean;

Description:

Starts the reclassification procedure

Syntax:

variable:= rcl.ReclassifyTable (TableOrLayer, OldAttribName, NewAttribName);


Part

Description


variable

A variable declared as variant


TableOrLayer

A reference to an instance of a TReclassificationWrapper  


OldAttributeName

Variable declared as string that represents the attribute to be reclassified


NewAttributeName

Variable declared as string that represents the attribute to which the original value is to be reclassified

Return value:

boolean


See also:

Create, Free, LoadClassification, RaiseExceptionOnMissingClass, ReclassifiedValue, ReclassifyTable


Example:

var 
  rcl:TReclassificationWrapper;  
begin
   rcl:=TReclassificationWrapper.create;
   try
     rcl.LoadClassification(ProjectDir+'Misc\SpeciesReclass.xml','');    
     rcl.ReclassifyTable(Trees_2013,'Species','SpeciesGroup');
   finally
     rcl.Free;                               
   end; 
end.