METAOUT

Export image metadata to XML document


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

Back to top

Description


Exports image metadata from a PCIDSK file to an XML document.
Back to top

Parameters


metaout(file)

Name Type Caption Length Value range
FILE * str Input PCIDSK file 1 -    

* Required parameter
Back to top

Parameter descriptions

FILE

Specifies the name of the PCIDSK from which to extract the metadata. The XML file to receive the metadata will be created in the same directory as the PCIDSK file, have the same basename as the PCIDSK file, and have an "xml" extension.

Back to top

Details

METAOUT reads image metadata (a set of name-value pairs) from a specified PCIDSK file, reformats the metadata into an XML document, and writes the data to a newly-created XML file.

METAOUT creates the XML file in the same directory as the input PCIDSK file, using the same base name as the PCIDSK file. The XML document is given an "xml" file extension. If a file of this name already exists, the new file overwrites the existing one.

The schema for the XML document is stored in the file $PCIHOME\\etc\\PCIImageMetadata.xsd. Note that only certain metadata items stored in the PCIDSK file are output to the XML document. It is possible that these may not include all of the items specified as mandatory by the schema. Also note that only the tags specified in the schema are exported; this does not necessarily include all of the metadata in the PCIDSK file.

Back to top

Example

Export image metadata from cuprad.pix.

from pci.metaout import metaout

file	=	"cuprad.pix"	# PCIDSK file name. "cuprad.xml" will be created
# and the image metadata written to it.

metaout( file )

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