GENFOOTPRINTS

Create footprints from images


EnvironmentsPYTHON :: EASI
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: Example :: Related

Back to top

Description


GENFOOTPRINTS processes a collection of geospatial data and produces vector footprints representing the extents for each file.
Back to top

Parameters


genfootprints(mfile, filo)

Name Type Caption Length Value range
MFILE * str Input file name, folder, or text file 1 -    
FILO * str Output file name 1 -    

* Required parameter
Back to top

Parameter descriptions

MFILE

The name of an image file, a folder, or a text file of images to process. If necessary, you can use a wildcard (*) in the string.

All of the source images must be compatible with one another; that is, they must have the same projection, channel structure, bit depth, and approximately the same resolution.

You can specify any of the following options for this parameter:
If you reference a text file, the following general rules apply:

FILO

The name of the output file to which to write the footprints. The output file contains one vector segment of all polygon footprints for the input files.

The file must not already exist; otherwise, processing stops, and an error message is displayed.

The following two attributes are added to the vector layer created in the footprints file:
Back to top

Details

GENFOOTPRINTS determines the four corners of an input image based on the file georeferencing. The four corners are used to generate a polygon, which is essentially the footprint of the file, for each input image. The output polygons are stored in one vector segment in the output file.

For GENFOOTPRINTS to generate footprints, the input data must be reprojectable to LONG/LAT.
Note: PIXEL georeferencing is not supported.

The output file must not exist already. If so, prcoessing stops, and an error message is displayed.

Back to top

Example

In this example, GENFOOTPRINTS is run on a set of images to generate polygon footprints of the input data. To determine the area and perimeter statistics for each footprint, you can run VECAREA.

from pci.genfootprints import genfootprints

mfile=	"imagery"	# location of source images
filo=	"footprints.pix"	# output file name

genfootprints(mfile, filo)

from pci.vecarea import vecarea

file 	= 	"footprints.pix"
dbvs 	= 	[2]

vecarea(file, dbvs)

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