CAMEXPORT

Export the Camera Calibration Parameters in XML


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

Back to top

Description


CAMEXPORT exports the camera calibration information from an OrthoEngine project file to an XML file. A DTD file with the same name and a .dtd extension is exported at the same time to the same directory.
Back to top

Parameters


camexport(oeproji, tfile)

Name Type Caption Length Value range
OEPROJI * str Input OrthoEngine project file 1 -    
TFILE * str Output XML file name 1 -    

* Required parameter
Back to top

Parameter descriptions

OEPROJI

Specifies the input OrthoEngine project file that contains the camera calibration data to be exported.

TFILE

Specifies the output XML file that stores the camera calibration information compatible with CAMIMPORT. A DTD file with the same name and a .dtd extension is created at the same time.

Back to top

Return Value

Returns: Execution status

Type:  PCI_INT

The return value is 0. This function returns only if it executes successfully; otherwise, it throws an exception.

Back to top

Details

CAMEXPORT exports the camera calibration parameters to an XML file so that they can be stored and re-used for a particular camera. The XML file is a compatible format that can be imported into other OrthoEngine project files using CAMIMPORT.

CAMEXPORT also exports a DTD file that is related to the XML file. The DTD file validates the XML file and enables it to be read in CAMIMPORT or in an Internet browser.

Note: All images in the specified OrthoEngine project file are processed, regardless of whether they are active or inactive.
Back to top

Example

An OrthoEngine project file named "airphoto_model.prj" is a valid project file with valid camera calibration. CAMEXPORT will create an XML file and a DTD file with the camera calibration information from the OrthoEngine project file.

from pci.camexport import camexport

oeproji	=	"airphoto_model.prj"	# input project file
tfile	=	"airphoto_model.xml"	# XML file with camera information

camexport( oeproji, tfile )

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