This example illustrates how to open irvine.pix from the demo directory, reads its georeferencing information and then gets it's geoinfo parameters. The geoinfo parameters are then printed out.
local integer tfid
local geoinfo gi
local string Parm, temp_file
try
temp_file = "./my.pix"
delete temp_file noerror
call CopyFile( GetPCIHOME() + "/demo/irvine.pix", \
temp_file)
tfid = DBOpen(temp_file, "r+")
call DBReadGeoInfo(tfid, gi)
Parm = GetGeoInfoParm(gi)
call DBSync(tfid)
call DBClose(tfid)
print "Parameter string: ", Parm
onerror
print "Error: "+ GetLastErrorMessage()
endonerror
Parameter string: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.