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()
In case you are still looking for an answer. We ran into the same problem and learned from Bentley Support that an "Internal" production ( production.setDriverName('Internal')) must be completed first before a Ortho/DSM can be done.
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.
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.
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.