1

Is it possible to piggyback onto the QGIS split method via a python plugin? Are toolbar buttons accessible via the python API?

This looks like the class that I need to access. Access ideas?

Proposed Workflow to Give an Implementation Example:

  1. Initialize editing
  2. Split the line as per How to Split Features in QGIS?
  3. Launch a custom GUI or otherwise call a set of functions to start to build a list that I push to the DB table on saving edits.
Jay Laura
  • 4,463
  • 1
  • 22
  • 43
  • actionSplitFeatures will help you run the split tool but after that it's not going to be much help. So you want to show a UI after the split tool is used? – Nathan W Aug 16 '13 at 03:58

1 Answers1

1

You can't really change the behavior of the built in split tool, and I'm not sure it would be good in this case anyway. What you can do however is create your own split tool and call QgsVectorLayer::splitFeatures which will cut the features in the layer when you give it a line.

All of the split logic is done in this method and the built in tool really only handles drawing the line and calling this function.

underdark
  • 84,148
  • 21
  • 231
  • 413
Nathan W
  • 34,706
  • 5
  • 97
  • 148