PreviousNext
Help > Programming PhotoModeler - Scripting/DDE Interface > Commands > ExportOrthoFromSurfaces
ExportOrthoFromSurfaces

Description:

Export an orthophoto based on all photo textured surfaces in a project

Syntax:

"ExportOrthoFromSurfaces planeType rotation overScan imageSizeX imageSizeY fileName"

where:

“planeType” corresponds to the plane type (1-6, where 1-TopXY, 2-BottomXY, 3-FrontXZ, 4-BackXZ, 5-RightYZ, 6-LeftYZ), “rotation” corresponds to the image rotation (1-4, where 1-Odegs, 2-180degs, 3-90degs, 4-270degs), “overScan” corresponds to the % of extra photographic data captured (0-40),  “imageSizeX” and “imageSizeY” correspond to the number of horizontal and vertical pixels respectively in the output, and “fileName” corresponds to the full path of the output file name (can have spaces in path).

See also Orthophoto Export

Return:

"1" if export is successful or "0" if this command failed. 

Failure returns

        planeType variable out of range (i.e. outside 1-6)

        rotation variable out of range (i.e. outside 1-4)

        overscan out of range (i.e. outside 0-40) 

        fileName corresponds to an invalid path

        projection plane cannot be formed internally

 

Example:

"ExportOrthoFromSurfaces 1 0 0 512 512 c:\orthophotos\fromSurfaces.jpg”

return "1"