<div dir="ltr">You can:<div><br></div><div> - create the polygon convering your raster extent: Vector -> Research Tools -> Polygon from layer extent</div><div> - obtain the clip between your vector layer and the extent polygon: Vector -> Geoprocessing tools -> Clip</div><div><br></div><div>@Vincent: Processing is installed with QGIS, you don't have to install it.</div><div><br></div><div>giovanni</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-08 9:56 GMT+02:00 Vincent Mora <span dir="ltr"><<a href="mailto:vincent.mora@oslandia.com" target="_blank">vincent.mora@oslandia.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi Leo,<br>
      <br>
      If you install the Processing plugin, you will find a clip tool
      for vector layers in the toolbox.<br>
      <br>
      You can also use ogr2ogr option --clipsrc
      (<a href="http://www.gdal.org/ogr2ogr.html" target="_blank">http://www.gdal.org/ogr2ogr.html</a>)... command line rcoks :)<br>
      <br>
      Cheers,<br>
      <br>
      V.<div><div class="h5"><br>
      <br>
      <br>
      <br>
      On 08/10/2014 09:46, Leo Kris Palao wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <pre>Dear QGIS users,

I would like to ask how to clip a polygon using a raster layer?

basically, I have a raster layer and I want to use it as a clip layer to my
vector layer.

Thanks,
-Leo

</pre>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Qgis-user mailing list
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><div>Twitter: <a href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a></div><div>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a></div></div>
</div>