| Environments | PYTHON :: EASI |
| Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Example :: Related |
| Back to top |
| Back to top |
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 - |
| Back to top |
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.
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.
| Back to top |
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.
The output file must not exist already. If so, prcoessing stops, and an error message is displayed.
| Back to top |
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.