<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Yes, it´s a solution, thanks.<br>
    <br>
    I was only thinking of a direct way and your two-steps workaround is
    nice too.<br>
    <br>
    Thank you!<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">El 10/06/2014 12:52, Joachim Józefowicz
      escribió:<br>
    </div>
    <blockquote
cite="mid:CAM6F6=U4rUbThRKM6PLqpxZ0793sp9BSyO5XY2bqUKR1mdB6aA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>You can build a model with a geoprocessing.</div>
        <div>First built buffer around your rivers with qgis algorithm
          fixed distance buffer then select by location your gas station
          with qgis algorithm Select by location.</div>
        <div> </div>
        <div>Thats all.</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2014-06-10 11:38 GMT+02:00 Ourizo Cacho
          <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:usuario7@gmx.es" target="_blank">usuario7@gmx.es</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello
            everyone,<br>
            <br>
            I have two vectorial shapes: Gas Stations (points) and
            rivers (lines).<br>
            <br>
            I want to select those points which are less than 300 meters
            far from the rivers, and I cant figure out how to do this
            with QGIS.<br>
            <br>
            I tried with Spatial Query but no chance with it. So I
            thought of a selection with an expression and the funtion
            Geometry. I´ve made several trials but no way. I can´t find
            an expression with a valid sintaxys.<br>
            <br>
            How can I do this with QGIS??. Do I need to install some
            plugin??.<br>
            <br>
            Thanks beforehand.<br>
            <br>
            ---<br>
            Este mensaje no contiene virus ni malware porque la
            protección de avast! Antivirus está activa.<br>
            <a moz-do-not-send="true" href="http://www.avast.com"
              target="_blank">http://www.avast.com</a><br>
            <br>
            _______________________________________________<br>
            Qgis-user mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
              target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
        <tr>
                <td style='border:none;padding:0px 15px 0px 8px'>
                        <a href="http://www.avast.com/">
                                <img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" />
                        </a>
                </td>
                <td>
                        <p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
                                Este mensaje no contiene virus ni malware porque la protección de <a href="http://www.avast.com/">avast! Antivirus</a> está activa.
                        </p>
                </td>
        </tr>
</table>
<br />
</body>
</html>