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
  • YES, I use CCMaster to open the CCM project file, and I can see my failed Production, but without more information. I can also submit a new Production to successfully generate the Orthophoto/DSM files. I compared the parameters of the two production, they are exactly same... 
    Now, I have submitted log files for help, but based on past experience, it can take a long time to receive a response.

    Can you send me a copy of your demo code? I doubt it is the initialization problem of the Orthophoto/DSM production.