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.
  • 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 3:58
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.