<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-cite-prefix">On 14-05-17 17:04, Markus Neteler
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALFmHhv_QkdwjVhr2CzU=NaphKu1bArxycMqFrRoB-ybTVT3Aw@mail.gmail.com">
      <p dir="ltr">Hi</p>
      <p dir="ltr">On May 13, 2017 10:42 PM, "Paulo van Breugel" <<a
          href="mailto:p.vanbreugel@gmail.com" moz-do-not-send="true">p.vanbreugel@gmail.com</a>>
        wrote:<br>
        ><br>
        > Hi, when using v.surf.bspline with sparse vector map points
        (sparse_input) the output vector map is a 3D vector point map
        with the interpolated values as z-values. However, I want to get
        the interpolated values as values in a column of the attribute
        table. Any idea how to do this?</p>
      <p dir="ltr">You can use v.to.db for this task:</p>
      <p dir="ltr"><a
          href="https://grass.osgeo.org/grass72/manuals/v.to.db.html#examples"
          moz-do-not-send="true">https://grass.osgeo.org/grass72/manuals/v.to.db.html#examples</a></p>
    </blockquote>
    <br>
    Thanks. It takes a few more steps because the output vector layer of
    v.surf.bspline has only one category, so v.to.db with option=coor
    will not work. What I am doing now is:<br>
    <br>
    <tt>v.surf.bspline input=calibration sparse_input=validationpoints \</tt><tt><br>
    </tt><tt>    column=elevation output=bspline_1</tt><tt><br>
    </tt><tt>v.category input=bspline_1 output=bspline_2 option=del
      cat=-1</tt><tt><br>
    </tt><tt>v.category input=bspline_2 output=bspline_3 option=add</tt><tt><br>
    </tt><tt>v.db.addtable map=bspline_3</tt><tt><br>
    </tt><tt>v.db.addcolumn map=bspline_3 \</tt><tt><br>
    </tt><tt>    columns='x double precision,y double precision,z double
      precision'</tt><tt><br>
    </tt><tt>v.to.db map=bspline_3 option=coor columns=x,y,z</tt><br>
    <br>
    which feels like a lot of steps to accomplish this. Is there a
    better way to do this?<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <blockquote type="cite"
cite="mid:CALFmHhv_QkdwjVhr2CzU=NaphKu1bArxycMqFrRoB-ybTVT3Aw@mail.gmail.com">
      <p dir="ltr">Markus</p>
    </blockquote>
    <br>
  </body>
</html>