On 27 January 2018 at 07:26, C Hamilton <adenacult...@gmail.com> wrote:
> I am working on making some of my QGIS plugin capabilities into processing
> algorithms. When defining input parameter characteristics for the
> GeoAlgorithm I want to do something like this:
>
> self.addParameter(ParameterVector(self.LAYER, 'Line or polygon layer',
> ParameterVector.VECTOR_TYPE_LINE | ParameterVector.VECTOR_TYPE_POLYGON))

It requires a list, rather than bit flags.

self.addParameter(ParameterVector(self.LAYER, 'Line or polygon layer',
[ParameterVector.VECTOR_TYPE_LINE,
ParameterVector.VECTOR_TYPE_POLYGON]))

Nyall
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to