25 rdb-example-05-remove-points.py 27 This example shows how to open an existing database and delete some points. 28 This example is based on the database of rdb-example-1-create-database. 34 with riegl.rdb.rdb_open(
"pointcloud.rdbx")
as rdb:
37 with riegl.rdb.Transaction(
45 buffer_identifier = riegl.rdb.AttributeBuffer(
46 rdb.point_attributes[
"riegl.id"], buffer_size
51 with rdb.select(
"riegl.class == 7")
as select:
52 select.bind(buffer_identifier)
55 with rdb.remove()
as remove:
56 remove.bind(buffer_identifier)
60 while point_count > 0:
61 point_count = select.next(buffer_size)
64 remove.next(point_count)