RE:[otb-users] GDALImageIO error

2016-09-16 Thread Poughon Victor
com] de la part de Julien Michel [julien.mic...@cnes.fr] Envoyé : jeudi 15 septembre 2016 13:32 À : otb-users@googlegroups.com Objet : Re: [otb-users] GDALImageIO error Most importantly you forgot the one rule when writing applications : images are written after DoExecute() method call ended, so

Re: [otb-users] GDALImageIO error

2016-09-15 Thread Julien Michel
Most importantly you forgot the one rule when writing applications : images are written after DoExecute() method call ended, so any local variable (and thus, all your filters) declared in DoExecute() does not exist anymore when trying to write the image. You can have a pointer to each of the

Re: [otb-users] GDALImageIO error

2016-09-15 Thread Jordi Inglada
Hi, Since the NaryAddImageFilter generates an output image with an unknown number of bands, I guess you have to call its UpdateOutputInformation() so that the downstream filters (and therefore the writer) know what to do. Jordi Poughon Victor wrote: > > Hi > > I am

[otb-users] GDALImageIO error

2016-09-15 Thread Poughon Victor
Hi I am writing an OTB application and getting the following error at runtime: itk::ERROR: GDALImageIO(0xc35a30): Dimensions are not defined. Any ideas what it means? Here is the DoExecute of my (very simple) application. i think the problem comes from the way I am using