When I close my oj-session or my project, i see this message
"1 automatically generated layer(s) have not been saved yet."
But i have not layers in a empty project.
On using existing projects, the number of layers in the message is bigger then 1.
Hi Michael,
I saw you solved this behavior on WorkbenchFrame class.
There 2 problems with Sextante Raster layers, I will try to describe.
Some Sextante Raster plugins save a result file into OS>TEMP folder (The plugins: extract selected part of image, warp image to fence, Affine transformation (from warping vectors) if the selected layer is a Sextante Raster).
1) OJ doesn't warn that those new raster layers are not saved into the project. If a user closes the project without saving it at this stage, these layers are lost (*)
2) Those new files are saved into TEMP folder. So, even if a user reminds to save the project (but leaves the files into TEMP folder) the files are deleted, at least for Linux and, I think, for MacOSX, when he shuts down the PC.
The old warning message was probably not correct but it was helping to remind user the presence of temporary raster layers.
We need an extra warning message, when OJ is closing down, to warn a user a) that there are some "temporary raster files" and to save them to a save folder b) to save anyhow the project if he/she wants to save these files as project layers.
Best regards
Peppe
(*) note that this happens also for raster files produced using any raster tool from Sextante toolbox.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Right,
Should be fixed in r4505
Hi Michael,
I saw you solved this behavior on WorkbenchFrame class.
There 2 problems with Sextante Raster layers, I will try to describe.
Some Sextante Raster plugins save a result file into OS>TEMP folder (The plugins: extract selected part of image, warp image to fence, Affine transformation (from warping vectors) if the selected layer is a Sextante Raster).
1) OJ doesn't warn that those new raster layers are not saved into the project. If a user closes the project without saving it at this stage, these layers are lost (*)
2) Those new files are saved into TEMP folder. So, even if a user reminds to save the project (but leaves the files into TEMP folder) the files are deleted, at least for Linux and, I think, for MacOSX, when he shuts down the PC.
The old warning message was probably not correct but it was helping to remind user the presence of temporary raster layers.
We need an extra warning message, when OJ is closing down, to warn a user a) that there are some "temporary raster files" and to save them to a save folder b) to save anyhow the project if he/she wants to save these files as project layers.
Best regards
Peppe
(*) note that this happens also for raster files produced using any raster tool from Sextante toolbox.