[GRASS-dev] Which is the correct WIND convention for creating a new mapset?

Panagiotis Mavrogiorgos pmav99 at gmail.com
Mon May 6 09:21:39 PDT 2019


Hello all,

I am a bit confused WRT what the expected WIND should be when you create a
new mapset.

Some functions copy DEFAULT_WIND from PERMANENT. E.g.:

   - lib/gis/make_mapset.c
   <https://github.com/GRASS-GIS/grass-ci/blob/686364f6a5dd65f4a0a79b71cd29a997489eda7d/lib/gis/make_mapset.c#L85-L86>

   - pygrass.gis.make_mapset()
   <https://github.com/GRASS-GIS/grass-ci/blob/686364f6a5dd65f4a0a79b71cd29a997489eda7d/lib/python/pygrass/gis/__init__.py#L112>
   - the grass executable
   <https://github.com/GRASS-GIS/grass-ci/blob/686364f6a5dd65f4a0a79b71cd29a997489eda7d/lib/init/grass.py#L1072-L1076>

While others copy WIND from PERMANENT. E.g.

   - the tests
   <https://github.com/GRASS-GIS/grass-ci/blob/686364f6a5dd65f4a0a79b71cd29a997489eda7d/lib/python/gunittest/invoker.py#L124-L125>
   - gui.wxpython.startup.create_mapset()
   <https://github.com/GRASS-GIS/grass-ci/blob/686364f6a5dd65f4a0a79b71cd29a997489eda7d/gui/wxpython/startup/utils.py#L78-L82>

Is there an established convention?

with kind regards,
Panos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20190506/25823c5b/attachment-0001.html>


More information about the grass-dev mailing list