-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make "Filter by geometry type" alg also available via Processing Toolbox #49334
Conversation
|
Test failure seems unrelated -> #48778 (comment) |
|
I must admit I'm a little confused by this 😄 QGIS doesn't really have support for mixed geometry type layers right now (ideally we would!), and all the sources which support mixed geometry types require you to manually select which geometry type you want for the layer when you load that source into a project. How are you getting a mixed geometry type layer in the first place as a source for running the algorithm? |
|
Oh, sorry that it's not clear from the PR description. The WFS used for the examples above is not under my control and has changed since then (currently no features for feature type: Short answer: from WFS sources Long version: There are WFS around which are serving feature types with mixed geometry types. If you load them with QGIS (via WFS connection), there's no dialogue which require you to manually select which geometry type you want for the layer. Instead one layer containing all available geometry types is added. The type of the added layer is either one geometry type like point, linestring, polygon, ... (I guess this is determined by the geometry type of the first feature in the WFS response document) or QGIS sometimes adds a layer with the following "mixed geometry icon": Here's a screencast demonstrating this (unfortunately this WFS is not publicly available, here the WFS response saved as file Please note that the type for the added layer is If you execute the demonstration_mixed_wfs.mp4Mixed geometry type layers from WFS source are currently a pain point in QGIS, here are two issues related to this:
The
According to this, it sounds like the missing selection dialog for WFS sources with mixed geometry types is a bug. If you drag a file with the WFS response of the screencast sample wfs_response.zip into QGIS, it shows the following dialog: Having such a dialog for layers with mixed geometries from WFS sources would be great and there would be no need anymore to work around with the |
|
Found another publicly available WFS which is serving mixed geometry types for a feature type: WFS endpoint: http://xplanung.lkee.de/xplansyn-wfs/services/xplansynwfs Feature type: |
|
Fair enough, that's a valid explanation! |
|
@pathmapper A documentation ticket will be opened at https://github.com/qgis/QGIS-Documentation when this PR is merged. Please update the description (not the comments) with helpful description and screenshot to help the work from documentors. Thank you! |
|
@pathmapper |
Fix qgis#7674 Algorithm was moved from "Modeler Tools" to "Vector selection" group in qgis/QGIS#49334
Fix #7674 Algorithm was moved from "Modeler Tools" to "Vector selection" group in qgis/QGIS#49334



Description
Currently the very useful algorithm
Filter by geometry typeis not available via the Processing Toolbox but there are use cases for having it also there, e.g. splitting a WFS layer with mixed feature geometries into single layers.Examples:
WFS: https://xplanung.freiburg.de/xplansyn-wfs/services/xplansynwfs
Feature type:

xplan:BP_AnpflanzungBindungErhaltungFeature type:

xplan:BP_Bereich