<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">YES ! <br>
<br>
Works perfect and does exactly what was expected.<br>
<br>
Many thanks,<br>
<br>
Patrick<br>
<br>
<br>
Le 01/05/2015 16:31, Michael Treglia a écrit :<br>
</div>
<blockquote
cite="mid:CAPKp32uhFOZWfed5DJ4gDhBi_aDzAQSk6dqWC+FRiGPk+BdsHg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi Patrick,<br>
<br>
</div>
I haven't had experience with using the intersect tool
in QGIS, but looks like a spatial query (with the
Spatial Query Plugin) can do what you want - see a
tutorial here, starting around step 22: <br>
<a moz-do-not-send="true"
href="http://www.qgistutorials.com/en/docs/performing_spatial_queries.html">http://www.qgistutorials.com/en/docs/performing_spatial_queries.html</a><br>
<br>
</div>
(after you get the result, there will be a list of feature
IDs that are selected based on the query, and there will
be an icon on the screen to create a new layer with the
selected features)<br>
<br>
</div>
I just did it with a test dataset and it performed as
expected.<br>
<br>
</div>
Hope that helps<br>
</div>
mike<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, May 1, 2015 at 2:10 AM, Patrick
Giraudoux <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:patrick.giraudoux@univ-fcomte.fr"
target="_blank">patrick.giraudoux@univ-fcomte.fr</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I have a question related to how the function "intersect"
works. I have two shapefiles, one of lines the others of
polygons. I would like to get into a shapefile the polygons
that are intersected by the lines. I tried unsuccessfully
using Vector > Geoprocessing tools > intersect. In
this case, if the input is the lines and the intersect the
polygon, I can split the lines according to the border of
each polygon, and each segment is identified by the polygon
name in the attribute, but this is not what I want to. If I
do the reverse, I get an empty polygon vector file.<br>
<br>
What I want is the shapefile of the subset of polygons that
intersect the lines...<br>
<br>
Any idea about how to proceed ?<br>
<br>
Patrick<br>
<br>
PS: for info, the expected result can be easily obtained in
R, package 'rgeos', function 'gIntersection'<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>
</body>
</html>