[GRASS-dev] TGRASS: mapset management question

Vaclav Petras wenzeslaus at gmail.com
Mon Sep 14 14:51:11 PDT 2015


On Mon, Sep 14, 2015 at 4:53 PM, Markus Neteler <neteler at osgeo.org> wrote:
>
>
> If the point of using that env var is to simply suppress the warning
> in the upper case, then maybe G_suppress_warnings(1) is better?
> Something like
>
> Index: lib/python/temporal/c_libraries_interface.py
> ===================================================================
> --- lib/python/temporal/c_libraries_interface.py    (revision 66229)
> +++ lib/python/temporal/c_libraries_interface.py    (working copy)
> @@ -294,7 +294,9 @@
>              char_list = ""
>              mapset = mapsets[count]
>
> +            libgis.G_suppress_warnings(1)
>              permission = libgis.G_mapset_permissions(mapset)
> +            libgis.G_suppress_warnings(0)
>              in_search_path = libgis.G_is_mapset_in_search_path(mapset)
>
> I see it used in various raster modules.
> What do you think?

Well, if it is in multiple raster modules then it is a conceptual problem.
Either the modules are doing something wrong or the right API is missing
for that case.

Vaclav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150914/fe096943/attachment.html>


More information about the grass-dev mailing list