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()
Since the release Update 17 ContextCapture includes an orthophoto script example in the SDK/samples folder. Its important to set the bounds of the orthophoto otherwise nothing may be generated. The sample script shows how to do this.
Did you guys make any progress on this? We are stuck with the same issue.
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.
Can you process the same dataset in CC Master?
Last time I checked with Bentley Support. They did not provide a way to lookup the error code. You will need to send them the error number and the log and hope for a reply from them.
I encountered the same problem and I tried:
production1.setDriverName('Internal') -> production1.submitProcessing() -> production2.setDriverName('Orthophoto/DSM') -> production2.submitProcessing().
don't work, and I got "The Error: Incomplete production. Failed during 3D mesh export." and CCEngine return "Error: task failed (returned : 283254785)"
Can you please give me more suggestions? Thanks.