DBReadGeoInfo

Demonstrates how to read georeferencing information.

Remarks

This example illustrates how to read georeferencing information of a file.

Code

 local        GeoInfo gi, int tfid;

 tfid = DBOpen( GetPCIHOME() + "/demo/irvine.pix", "r" )
 call DBReadGeoInfo( tfid, gi )
 call DBClose( tfid )

 print "Map Units:", gi.Units
 print "Upper Left:", gi.ULX, gi.ULY
 print "Lower Right:", gi.LRX, gi.LRY

Output

Map Units:UTM    11 S E000
Upper Left:428720 3734400
Lower Right:444080 3719040

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.