When I try to start this algorithm I get an error:

Traceback (most recent call last): File "C:/Users/trdina/.qgis//python/plugins\sextante\core\GeoAlgorithm.py", line 145, in execute self.processAlgorithm(progress) File "C:/Users/trdina/.qgis//python/plugins\sextante\algs\ftools\SumLines.py", line 85, in processAlgorithm spatialIndex = utils.createSpatialIndex(lineLayer) File "C:/Users/trdina/.qgis//python/plugins\sextante\algs\ftools\FToolsUtils.py", line 32, in createSpatialIndex provider = layer.provider() AttributeError: 'QgsVectorLayer' object has no attribute 'provider'

I have no clue woh to solve this error. Any help is welcome. Best regards

  • Should work in 1.8. Are you working with the current development version?
    – underdark
    Commented Feb 12, 2013 at 10:57

1 Answer 1


Sounds like a bug coming from the recent QGIS Api changes. Consider posting a detailed bug-report here.
In the meantime try to use alternative tools like the Lines Properties function in SAGA (also accessible through sextante).

  • Thanks for your answer. I need sum of lines length in overlay polygon layer. So I think that SAGA - line properties doesn't solve the problem.
    – Andrej
    Commented Feb 12, 2013 at 9:09
  • mmh and if you make a new attribute column called length and insert " $length " this will give you the length of all your lines. Now you simply have to sum them up. Alternatively join them first
    – Curlew
    Commented Feb 12, 2013 at 9:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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