GetGeoInfoParm

Demonstrates how to retrieve geoinformation parameters.

Remarks

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.

Code

 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

Output

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.