<div dir="ltr"><div><div><div><br><br>On Fri, Nov 10, 2017 at 10:06 AM, Micha Silver <<a href="mailto:tsvibar@gmail.com">tsvibar@gmail.com</a>> wrote:<br>><br>> IMHO it would be helpful to add a flag to v.edit to also delete the database entries when tool=delete.<br>> In general use, when I delete a feature, I don't expect to leave orphaned entries in the attribute table.<br><br></div>It's not that simple, you would also need to check if this entry in the attribute table, i.e. this category value, is not used by any of the other geometries left (different geometries can share the same category value and attributes).<br><br></div>Best would be a new library function that prunes a table, removing all unused entries, something like Vect_prune_table().<br><br></div>Markus M<br><br><div><div><div>><br>><br>> On 11/09/2017 12:25 PM, Johannes Radinger wrote:<br>><br>> Indeed, finally I also used a combination of v.edit to remove the point from the map and db.execute ("DELETE FROM my_point_map WHERE cat IN (1,2,3)") to delete the entries from the attribute table. <br>><br>> /Johannes<br>><br>> On Thu, Nov 9, 2017 at 10:27 AM, Stefan Blumentrath <<a href="mailto:Stefan.Blumentrath@nina.no">Stefan.Blumentrath@nina.no</a>> wrote:<br>>><br>>> So, removing records from the attribute table would be a job for db.execute of db.select I guess…<br>>><br>>>  <br>>><br>>> From: Johannes Radinger [mailto:<a href="mailto:johannesradinger@gmail.com">johannesradinger@gmail.com</a>]<br>>> Sent: torsdag 9. november 2017 10.17<br>>> To: Stefan Blumentrath <<a href="mailto:Stefan.Blumentrath@nina.no">Stefan.Blumentrath@nina.no</a>><br>>> Cc: GRASS user list <<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>><br>>> Subject: Re: [GRASS-user] GRASS-way to delete points from a map and attribute table<br>>><br>>>  <br>>><br>>> Dear Stefan,<br>>><br>>> thanks for the tip, but as said I tried already v.edit but somehow this tools does not modify the attribute table (or do I miss something here?)<br>>><br>>> /Johannes<br>>><br>>>  <br>>><br>>> On Thu, Nov 9, 2017 at 10:10 AM, Stefan Blumentrath <<a href="mailto:Stefan.Blumentrath@nina.no">Stefan.Blumentrath@nina.no</a>> wrote:<br>>><br>>> Did you try v.edit:<br>>><br>>> <a href="https://grass.osgeo.org/grass72/manuals/v.edit.html">https://grass.osgeo.org/grass72/manuals/v.edit.html</a><br>>><br>>> Cheers<br>>><br>>> Stefan<br>>><br>>>  <br>>><br>>> From: grass-user [mailto:<a href="mailto:grass-user-bounces@lists.osgeo.org">grass-user-bounces@lists.osgeo.org</a>] On Behalf Of Johannes Radinger<br>>> Sent: torsdag 9. november 2017 10.04<br>>> To: GRASS user list <<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>><br>>> Subject: [GRASS-user] GRASS-way to delete points from a map and attribute table<br>>><br>>>  <br>>><br>>> Hi,<br>>><br>>>  <br>>><br>>> what would be the most GRASS-like way to delete several points from a points vector map. <br>>><br>>>  <br>>><br>>> I know the specific cats of the points I would like to delete (10 of 200000) and I want to delete the points from the map and, of course, also from the corresponding attribute table. I already tried v.edit but here the points are not deleted from the attribute table. I could also use v.extract with the reverse flag, however this requires to define a new output map (which I would like to avoid if possible). Any straight forward way in GRASS?<br>>><br>>>  <br>>><br>>> /Johannes<br>>><br>>>  <br>><br>><br>><br>><br>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>><br>><br>> -- <br>> Micha Silver<br>> Ben Gurion Univ.<br>> Sde Boker, Remote Sensing Lab<br>> cell: +972-523-665918<br>><br>><br>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br><br></div></div></div></div>