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()
Did you guys make any progress on this? We are stuck with the same issue.
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.