This example illustrates how to read the map units, upper left and lower right coordinates of a selected layer.
local int tfid, int layer
local GeoInfo gi
try
layer = 28
tfid = DBOpen( GetPCIHOME() + "/demo/irvine.pix", "r")
call VECReadGeoInfo(tfid, layer, gi)
call DBClose(tfid)
print "Map Units:", gi.Units
print "Upper Left:", gi.ULX, " ", gi.ULY
print "Lower Right:", gi.LRX, " ", gi.LRY
onerror
print "Error: "+ GetLastErrorMessage()
endonerror
Map Units:UTM 11 S E000 Upper Left:0.0 0.0 Lower Right: 1.0 1.0
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.