[GRASS-user] Error while removing file
Markus Neteler
neteler at osgeo.org
Thu Mar 17 11:15:40 EDT 2011
2011/3/16 Glynn Clements <glynn at gclements.plus.com>:
...
> It appears to be a bug with something not correctly handling qualified
> names.
>
> Rast_put_reclass() is a likely candidate:
>
> sprintf(buf2, "%s@%s\n", name, G_mapset());
>
> This should be e.g.:
>
> xname = G_fully_qualified_name(name, G_mapset());
>
> which will only add the mapset if the name is unqualified.
>
> Also, the "misc: couldn't be removed" is probably because
> G_is_reclassed_to() doesn't close the cell_misc/<name>/reclassed_to
> file. On Windows, you cannot delete a file if it's open.
>
> Can someone check r45681 and back-port?
I didn't test but backported (unsubmitted, see email in grass-dev).
This will hopefully solve the long term mystery of reclass files
sometimes not being deletable.
Markus
More information about the grass-user
mailing list