v.db.droprow.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <h2>DESCRIPTION</h2>
  2. <em>v.db.droprow</em> removes vector object(s) (point, line, area, face etc.)
  3. from a vector map through attribute selection in the table connected
  4. to the given vector map. It automatically checks the connection for the specified
  5. layer.
  6. <h2>NOTES</h2>
  7. v.db.droprow is a front-end to <em>v.extract</em> (reverse selection)
  8. to allow easier usage.
  9. The existing database connection(s) can be verified with <em>v.db.connect</em>.
  10. <h2>EXAMPLES</h2>
  11. Dropping all vector points without elevation attribute (North Carolina data set):<br>
  12. <div class="code"><pre>
  13. g.region rast=elevation -p
  14. v.random output=rand5k_elev n=5000
  15. v.db.addtable map=rand5k_elev column="elevation double precision"
  16. v.what.rast vect=rand5k_elev rast=elevation column=elevation
  17. # verify absence of some elevation attributes ("number of NULL attributes"):
  18. v.univar rand5k_elev type=point column=elevation
  19. # Remove all vector points lacking elevation attribute
  20. v.db.droprow rand5k_elev output=rand5k_elev_filt where="elevation IS NULL"
  21. # verify:
  22. v.univar rand5k_elev_filt type=point column=elevation
  23. </pre></div>
  24. <h2>SEE ALSO</h2>
  25. <em>
  26. <a href="db.droptable.html">db.droptable</a>,
  27. <a href="db.execute.html">db.execute</a>,
  28. <a href="v.db.addcolumn.html">v.db.addcolumn</a>,
  29. <a href="v.db.addtable.html">v.db.addtable</a>,
  30. <a href="v.db.connect.html">v.db.connect</a>,
  31. <a href="v.db.dropcolumn.html">v.db.dropcolumn</a>,
  32. <a href="v.db.droptable.html">v.db.droptable</a>,
  33. <a href="v.db.select.html">v.db.select</a>,
  34. <a href="v.db.update.html">v.db.update</a>
  35. </em>
  36. <h2>AUTHOR</h2>
  37. Markus Neteler
  38. <p><i>Last changed: $Date$</i>