[GRASS-git] [OSGeo/grass-addons] 2a045c: v.what.rast.multi.py: remove mapset part of layer ...

Paulo van Breugel noreply at github.com
Sun Jan 21 00:03:38 PST 2024


  Branch: refs/heads/ecodiv-patch-2
  Home:   https://github.com/OSGeo/grass-addons
  Commit: 2a045ca86fdb5ab5e73336082e874a2d2b656c77
      https://github.com/OSGeo/grass-addons/commit/2a045ca86fdb5ab5e73336082e874a2d2b656c77
  Author: Paulo van Breugel <paulo at ecodiv.earth>
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
    M src/vector/v.what.rast.multi/v.what.rast.multi.py

  Log Message:
  -----------
  v.what.rast.multi.py: remove mapset part of layer names if used for column names

Problem:
When no column names are provided, the names of the input raster layers are used as column names. If these include the mapset suffix, an error is thrown (SQLite does not accept @).

Provided solution:
The mapset suffix is removed. Alternatively, if the mapset names should be in the column names, the -m flag can be set. In that case, the @ is replaced with an underscore




More information about the grass-commit mailing list