<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear all<br>
    <br>
    Is there a function in GRASS70 to match multiple rasters as values
    to a point-vector. Some of the rasters are of type integer, some of
    type float and the columns should ideally respect the datatype. It
    might be possible as a bash.loop on v.what.rast, but I do not find a
    way to query the datatype of a raster and get warnings:<br>
    <i><br>
      for i in `g.list type=rast ` #ideally </i><i>only type integer OR
      float<br>
    </i><i>do </i><i><br>
    </i><i>    echo "adding layer '$i'"    </i><i><br>
    </i><i>    v.db.addcolumn map=pt_grid column="$i double" #adapt
      datatype of column according to raster type</i><i><br>
    </i><i>    v.what.rast map=pt_grid rast=$i col=$i</i><i><br>
    </i><i>done;<br>
      <br>
    </i>Happy about any help and hint,<br>
    Patrick<br>
    <i><br>
    </i><br>
  </body>
</html>