Bug report #17030
QGIS 2.99.0-149 modeler, algorithm input does not restrict to valid shape types
|Affected QGIS version:||master||Regression?:||Yes|
|Operating System:||Windows 10||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||24929|
In QGIS 2.99.0 modeler there is a new input type called 'Feature Source', what does, what 'Vector Layer' did in previous versions ([[https://gis.stackexchange.com/questions/252373/qgis-2-99-0-149-modeler-inputs-feature-source-vs-vector-layer]]).
In previous versions QGIS modeler algorithm inputs did restrict the list of selectable input layers to valid shape types (e.g. a polygon input and a point input in 'Count points in polygon' algorithm). QGIS 2.99.0 lacks this behaviour at this point, so it would be possible to pass a point input layer to an algorithm where a polygon layer is expected (and vice versa, cp. attached screeshot).
Expose all layer type filters to both model feature source, vector
layer and multi layer inputs
#3 Updated by Jochen Schwarze about 4 years ago
So with exposing all layer type filters vector layer input (2.99.0-151), we can use either feature source or vector layer as algorithm input. Obviously they are treated the same, which can be confusing (cp. gis.se question referred to above), Why this distinction?