Description
Transfer() is used to perform the transfer of the layers from the source file to the destination file.
Call Signature
void Transfer ( )
Return Value
void
This has no return value.
Example
This example shows how the DBTransfer intrinsic may be used to transfer a segment from one file to another:
define function M_CopySegment( fdin,fdout,layer_type,SegIn,poModule )
local int SegOut
local DBTransferInfo ti
try
call ti.SetDestFile(fdout)
call ti.SetProgressCounter(ModuleProgressFunc,poModule)
call ti.AddLayer(fdin,layer_type,SegIn,0,0)
call ti.Transfer()
SegOut= ti.GetNewLayerNumber(1)
call DBSync( fdout )
onerror
SegOut = -1
endonerror
return SegOut
enddefine
See also
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.