This example illustrates how to delete the shape of a layer.
local int tfid
local int shape, int layer
local string temp_file
try
temp_file = "./my.pix"
delete temp_file noerror
call CopyFile( GetPCIHOME() + "/demo/irvine.pix", \
temp_file)
tfid = DBOpen(temp_file, "r+")
shape = 713
call VECDeleteShape(tfid, 28, shape)
print "Deleted"
call DBClose(tfid)
onerror
print "Error: "+ GetLastErrorMessage()
endonerror
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.