<div dir="ltr"><div><div><div>Thanks Moritz,<br><br></div>v.extract did the job. The only downside is that I need to keep creating temporary layers since I'll have to do a series of edits. But no problem. It can be done.<br><br></div>Cheers<br></div>Daniel<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 31, 2016 at 11:40 AM, Moritz Lennert <span dir="ltr"><<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 31/08/16 16:32, Daniel Victoria wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi List,<br>
<br>
This is probably more due to my lack of understanding of how v.edit<br>
works. But here it goes.<br>
<br>
I have a polygon vector layer where some of the polygons have a 'No<br>
data' label. I'd like to delete those polygons so I ran the command,<br>
with the following output:<br>
<br>
v.edit map=teste@isna tool=delete where="label like '%no data%'"<br>
Selecting features...<br>
207 of 7200 features selected from vector map <teste@isna><br>
207 features deleted<br>
Building topology for vector map <teste@isna>...<br>
Registering primitives...<br>
6993 primitives registered<br>
29546 vertices registered<br>
Building areas...<br>
2195 areas built<br>
264 isles built<br>
Attaching islands...<br>
Attaching centroids...<br>
Number of nodes: 3086<br>
Number of primitives: 6993<br>
Number of points: 0<br>
Number of lines: 0<br>
Number of boundaries: 5017<br>
Number of centroids: 1976<br>
Number of areas: 2195<br>
Number of isles: 264<br>
v.edit complete.<br>
<br>
After that, the offending polygons where deleted however, their<br>
boundaries are still present. That is, when I load the vector in the map<br>
display, I still see the boundaries in some polygons, even though the<br>
area is not filled. Is this the intended behavior? I tried using the<br>
areadel tool but then the whong polygon was deleted. I'm guessing the<br>
shared boundary of a valid polygon was removed and his caused problems.<br>
<br>
Attached is a sample of what I'm seeing after v.edit delete<br>
<br>
</blockquote>
<br></div></div>
Attributes of areas are linked to the centroid of the area. So the features you select through your query are these centroids, not the boundaries.<br>
<br>
It would probably be nice to have a type=area option in v.edit.<br>
<br>
To get the same result, you could use v.extract -r type=area.<span class="HOEnZb"><font color="#888888"><br>
<br>
Moritz<br>
<br>
</font></span></blockquote></div><br></div>