[Qgis-developer] What happened to processing.runalg?

Tim Sutton tim at kartoza.com
Fri Feb 6 05:41:49 PST 2015


Hi All

Once of our tests in InaSAFE fails against master (see below). Can someone
tell me where runalg went, and more broadly which parts of the processing
framework can be relied of as API compatible between releases? I guess more
and more people will start relying on its API and we should make it clear
what the best practice is.

Thanks!

Regards

Tim

======================================================================
ERROR: Test if line aggregation works
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/timlinux/dev/python/inasafe-dev/safe/impact_statistics/test/test_aggregator.py",
line 596, in test_line_aggregation
    impact_layer_attributes=impact_layer_attributes)
  File
"/home/timlinux/dev/python/inasafe-dev/safe/impact_statistics/test/test_aggregator.py",
line 338, in _aggregate
    aggregator.aggregate(impact_layer)
  File
"/home/timlinux/dev/python/inasafe-dev/safe/impact_statistics/aggregator.py",
line 527, in aggregate
    qgis_impact_layer, safe_impact_layer)
  File
"/home/timlinux/dev/python/inasafe-dev/safe/impact_statistics/aggregator.py",
line 634, in _aggregrate_vector_impact
    self._aggregate_line_impact(safe_impact_layer)
  File
"/home/timlinux/dev/python/inasafe-dev/safe/impact_statistics/aggregator.py",
line 920, in _aggregate_line_impact
    res = self.processing.runalg('qgis:intersection',
AttributeError: 'module' object has no attribute 'runalg'




-- 
------------------------------------------------------------------------------------------
Tim Sutton
Visit http://kartoza.com to find out about open source:
 * Desktop GIS programming services
 * Geospatial web development
* GIS Training
* Consulting Services
Skype: timlinux Irc: timlinux on #qgis at freenode.net
Tim is a member of the QGIS Project Steering Committee
-------------------------------------------------------------------------------------------
Kartoza is a merger between Linfiniti and Afrispatial
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150206/550c5ab5/attachment.html>


More information about the Qgis-developer mailing list