How to use the SDK to create an orthophoto

In the SDK sample, only creating a 3D mesh, how to generate an orthophoto

I used the following code, but it was not successful

# --------------------------------------------------------------------
    # Production
    # --------------------------------------------------------------------
    production = ccmasterkernel.Production(reconstruction)
    
    production.addProductionJob( ccmasterkernel.TileProductionJob(production, reconstruction.getInternalTile(0)) )
    reconstruction.addProduction(production)

    production.setDriverName('Orthophoto/DSM')
    production.setDestination( os.path.join(project.getProductionsDirPath(), production.getName()) )

    driverOptions = production.getDriverOptions()
    driverOptions.writeXML( os.path.join(project.getProductionsDirPath(), "options.xml") )

    production.setDriverOptions(driverOptions)

    print('Production item created.')

    productionSubmitError = production.submitProcessing()
Parents Reply Children