benducke / Network-reconstruction-tools-for-GRASS-GIS

Node-based network model generator for GRASS GIS 7.x (and QGIS 3.x)
GNU General Public License v3.0
4 stars 1 forks source link

v.net.models: speed up creation of nodes output map #61

Closed benducke closed 1 month ago

benducke commented 2 months ago

The final step of v.net.models involves exporting the output nodes. Although these are normally significantly fewer geometries than the output links, this steps takes a long time.

The processing steps in question occur after this message:

g.message -i "Writing output nodes map:"

There output loop contains v.db.select statements and calls to db.execute.

Options for optimization:

  1. Make the output of (most) node attributes optional (might not always be worth the time; often the mere labels might be enough).
  2. Process the db.execute statements in chunks (see #56 ).
benducke commented 1 month ago

Done with https://github.com/benducke/Network-reconstruction-tools-for-GRASS-GIS/commit/e63214b3e90dabce20611ef789b87c05090f98f6