Thanks Nyall. It worked.

On Fri, Jan 26, 2018 at 6:26 PM, Nyall Dawson <[email protected]>
wrote:

> On 27 January 2018 at 07:26, C Hamilton <[email protected]> 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
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to