[GRASS-dev] WARNING: No data base element files found
Paulo van Breugel
p.vanbreugel at gmail.com
Mon Mar 21 04:49:26 PDT 2016
On 21-03-16 11:41, Moritz Lennert wrote:
> On 21/03/16 11:38, Paulo van Breugel wrote:
>> Hi, I think this has been mentioned before, but can't find the email.
>> When running some functions or addons, e.g., r.forestfrag, I get the
>> "WARNING: No data base element files found"
>> This seems to happen in some mapsets only. What is this warning about,
>> and how to avoid it / remove it?
> In my experience it comes from a g.remove call that tries to remove a
> file that doesn't exist. So generally, testing for its existence
> before removing avoids the warning.
I see, in my script I remove temporary layers using g.remove, but I am
also using the procedure with atexit.register(cleanup)), which will
(attempt to) clean up the layers at the end of the script.
More information about the grass-dev