#2858: d.mon cairo cleans the image without overwrite flag
-----------------------------------------+-------------------------
Reporter: wenzeslaus | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.1.0
Component: Display | Version: svn-trunk
Keywords: d.mon, rendering, overwrite | CPU: Unspecified
Platform: Linux |
-----------------------------------------+-------------------------
`d.mon` with `start=cairo` removes whatever is in the output file (named
map.png by default) even though the `--overwrite` flag was not specified.
The file is left there but it is empty. This happens in trunk, not in 70
release branch. Here are steps to reproduce it:
1. Render an image:
{{{
d.mon cairo
d.rast elevation
d.mon stop=cairo
}}}
2. View the file map.png. elevation map should be there.
3. Try to start d.mon again:
{{{
> d.mon cairo
ERROR: option <output>: <map.png> exists. To overwrite, use the
--overwrite
flag
}}}
4. Correct error was reported but view the file map.png. It is there but
it is empty.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2858>
GRASS GIS <https://grass.osgeo.org>