GDBMETA

Export GDB metadata from input file to XML


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

Back to top

Description


GDBMETA creates an XML file of metadata extracted from a GDB file.
Back to top

Parameters


gdbmeta(mfile, filo, tfile, cps, sltype, dbic, dbsl, foptions)

Name Type Caption Length Value range
MFILE str Input file, folder, or text file 0 -  
FILO str Name of output file 0 -    
TFILE str Name of transformation file 0 -    
CPS str Complementary projection string 0 -    
SLTYPE str Type of input segment 0 -  
DBIC List[int] Input channel numbers 0 - 48 1 -
DBSL List[int] Input segment numbers 0 - 48 1 -
FOPTIONS str Options for output file 0 -    
Back to top

Parameter descriptions

MFILE

The name of a file, or a folder or text file that contains the data to process. If necessary, you can use a wildcard–the asterisk (*)–in the string.

You can specify the value of the parameter by using any of the following:
With a text file, the following general rules apply:

FILO

The name of the XML file to which to write the generated metadata.

If you do not specify a value for this parameter, the name of the output XML file is based on that of the input file, but with an .xml extension.

TFILE

The name of the transformation file.

You can specify the value of the parameter by using any of the following:

CPS

Generates entries in the output in the requested projections, or map units, which can be useful for reprojecting the bounding boxes to the list of projections.

Use a semicolon (;) as a delimiter between each projection string.

To generate a complementary projection that is the best UTM zone for the image, enter a value of UTM. The best UTM zone is the one that produces the least amount of distortion.

SLTYPE

The GDB-supported data types used for any specified segments (DBSL).

Bitmap and vector bounding boxes will be reprojected when you specify a value for CPS. Other types of segment-held metadata will be copied directly to the output file.

SLTYPE and DBIC are mutually exclusive. SLTYPE and DBSL are mutually exclusive.

You can specify the value as any one of the following segment types:

DBIC

The list of channels for which to produce metadata.

If you do not specify a value, all channels are processed. Channels that do not exist will be ignored.

DBIC and SLTYPE are mutually exclusive.

DBSL

The list of segments for which to produce metadata.

If you do not specify a value, all segments are processed. Segments that do not exist will be ignored.

DBSL and SLTYPE are mutually exclusive.

FOPTIONS

The options to apply when creating the output file.

You can specify the value as any one of the following: RELATIVE and ABSOLUTE are mutually exclusive. When you specify both, the last one is used. CONVEXHULL and NOFOOTPRINT are mutually exclusive. When you specify both, the last one is used. WKT and NOWKT are mutually exclusive. When you specify both, the last one is used. TIME and NOTIME are mutually exclusive. When you specify both, the last one is used. HISTORY and NOHISTORY are mutually exclusive. When you specify both, the last one is used. KVP and NOKVP are mutually exclusive. When you specify both, the last one is used. FILENAMES and NOFILENAMES are mutually exclusive. When you specify both, the last one is used. COMPACT and PRETTYPRINT are mutually exclusive. When you specify both, the last one is used.
Note: When you specify an XSLT file for TFILE, COMPACT and PRETTYPRINT are ignored.
Back to top

Details

GDBMETA extracts GDB metadata from the file or files specified.

If necessary, you can specify a complimentary projection string, such as UTM, for CPS. That is, when you want to know, for example, the inherent projection and the longitude and latitude, you can use a complimentary projection string to generate extra bounding boxes for each.

Back to top

Example

The following example transfers all metadata from irvine.pix to an XML file in GDBMETA1_0_0 format.

from pci.gdbmeta import gdbmeta
mfile="irvine.pix"           # input file from which to extract metadata
filo="meta_irvine.xml"       # output XML file to which to write metadata
tfile=''                     # GDB XML data as output (default)
cps=''                       # no extra bounding boxes
sltype='ALL'                 # extract metadata from all channels and segments
dbic=[]                      # process all channels (default)
dbsl=[]                      # process all segments (default)
foptions=''
gdbmeta(mfile, filo, tfile, cps, sltype, dbic, dbsl, foptions)

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