<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Boa tarde Joaquim,</p>
    <p>Eu usaria a ferramenta de processamento "Set M value from
      raster". Esta ferramenta permite atribuir a cada vértice de uma
      geometria vetorial o valor que está num raster. O valor é
      atribuído à dimensão m da geometria.<br>
    </p>
    <p>Mando uma ilustração do resultado em [1]. No mapa já se pode ver
      na etiqueta a altimetria obtida a partir do raster. Criei uma
      coluna para a altimetria, e com a calculadora, fiz: altimetria =
      m( $geometry ).</p>
    <p>A ferramenta "Set M value from raster" dá o valor para todos os
      vértices. Pode-se usar só o primeiro e o último para calcular o
      declive médio.</p>
    <p>Eu já fiz este exercício há algum tempo. Pode-me estar a escapar
      alguma passo, mas acho que é este o "workflow".<br>
    </p>
    <p>Bom trabalho,</p>
    <p>Jorge Gustavo</p>
    <p>[1] <a class="moz-txt-link-freetext" href="https://nextcloud.di.uminho.pt/s/5q637gdHKoZbSRc">https://nextcloud.di.uminho.pt/s/5q637gdHKoZbSRc</a><br>
    </p>
    <div class="moz-cite-prefix">On 29/04/20 13:28, Joaquim Bastos
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMB7wUPLjLn+aKeSGizssqK2Be6XjFZGpw2Nx63c+m_SjG+6Cw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Boa tarde a todos<br>
        </div>
        <div><br>
        </div>
        <div>S. Almeida: Muito obrigado pelo envio do script MAPIT.
          Funciona na perfeição, e já fiz uma verificação aleatória dos
          valores da velocidade, calculando "à mão" alguns valores, e
          bateram certinho.</div>
        <div><br>
        </div>
        <div>Seguindo uma das sugestões apresentadas (relacionar as
          velocidades com o declive do terreno), como posso fazer essa
          correspondência a partir de um raster de declives?</div>
        <div><br>
        </div>
        <div>Saudações, JB<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-pt mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-pt@lists.osgeo.org">QGIS-pt@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-pt">https://lists.osgeo.org/mailman/listinfo/qgis-pt</a>
</pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      <title>Email Signature</title>
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <table style="width: 525px; font-size: 11pt; font-family: Arial,
        sans-serif;" cellspacing="0" cellpadding="0">
        <tbody>
          <tr>
            <td style="text-align:center; font-size: 10pt; font-family:
              Arial, sans-serif; border-right: 1px solid;
              border-right-color: #fb6303; width: 125px; padding-right:
              10px; vertical-align: top;" rowspan="6" width="125"
              valign="top"> <a href="https://www.geomaster.pt"
                target="_blank"><img alt="Logo" style="width:105px;
                  height:auto; border:0;"
src="https://geomaster.pt/wp-content/uploads/2017/02/cropped-geomaster300x300-1.png"
                  width="85" border="0"></a> </td>
            <td style="padding-left:10px">
              <table cellspacing="0" cellpadding="0">
                <tbody>
                  <tr>
                    <td style="font-size: 10pt; color:#0079ac;
                      font-family: Arial, sans-serif; width: 400px;
                      padding-bottom: 5px; padding-left: 10px;
                      vertical-align: top;" valign="top"> <strong><span
                          style="font-size: 14pt; font-family: Arial,
                          sans-serif; color:#fb6303;">Geomaster</span></strong><br>
                      <strong><span style="font-size: 11pt; font-family:
                          Arial, sans-serif; color:black;">Jorge Gustavo
                          Rocha</span></strong> <span
                        style="font-family: Arial, sans-serif;
                        font-size:11pt; color:#000000;"><span
                          style="padding-right: 5px; padding-left: 5px;">
                          | </span>Software Engineer</span> </td>
                  </tr>
                  <tr>
                    <td style="font-size: 10pt; color:#444444;
                      font-family: Arial, sans-serif; padding-bottom:
                      5px; padding-top: 5px; padding-left: 10px;
                      vertical-align: top; line-height:17px;"
                      valign="top"> <span><span style="color: #fb6303;"><strong>e:</strong></span><span
                          style="font-size: 10pt; font-family: Arial,
                          sans-serif; color:#000000;"> <a class="moz-txt-link-abbreviated" href="mailto:jgr@geomaster.pt">jgr@geomaster.pt</a></span></span>
                      <span><span style="padding-left:
                          5px;padding-right: 5px;"> | </span><span
                          style="color: #fb6303;"><strong>m:</strong></span><span
                          style="font-size: 10pt; font-family: Arial,
                          sans-serif; color:#000000;"> +351 910 333 888<br>
                        </span></span> <span><span style="color:
                          #fb6303;"><strong>g:</strong></span><span
                          style="font-size: 10pt; font-family: Arial,
                          sans-serif; color:#000000;"> 41.54094,-8.40490</span></span>
                      <span><span style="padding-left:
                          7px;padding-right: 5px;"> | </span><span
                          style="color: #fb6303;"><strong>v: </strong></span><span
                          style="font-size: 10pt; font-family: Arial,
                          sans-serif; color:#000000; padding-left: 7px;">
                          510 906 109<br>
                        </span></span> <span> <span style="color:
                          #fb6303;"><strong>a: </strong></span> </span>
                      <span> <span style="font-size: 10pt; font-family:
                          Arial, sans-serif; color: #000000;"><span> </span>Rua
                          António Cândido Pinto, 67, 4715-400 Braga<br>
                        </span></span> </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>