-
-
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
Editing of a filtered OGR vector layer #26317
Comments
Author Name: Arjan Mossel (Arjan Mossel) Update: user error. I'd added the SpatiaLite layer via the Vector menu, and therefore it wasn't recognized as SpatiaLite. When added as SpatiaLite it works as desired. It would be user-friendly to check SQLite data sources for SpatiaLite functionality and offer to use it when it is available. |
Author Name: Jürgen Fischer (@jef-n)
But in QGIS 3.0 the edit option is unavailable when a filter is applied on a SpatiaLite layer. A regression? to I understand that it will not be possible to allow simultaneous filtering (provider feature filter) and editing of an OGR layer like Shapefile, GeoPackage, plain SQLite ("editing on a filtered layer won't be possible because of the way OGR provider construct a filtered layer", #25691 (comment)). But with SpatiaLite (and other databases?) it should presumably be possible, and in QGIS2 it is (example: https://gis.stackexchange.com/a/231046). But in QGIS 3.0 the edit option is unavailable when a filter is applied on a SpatiaLite layer. A regression? |
Author Name: Alessandro Pasotti (@elpaso) Due to the way different providers are implemented in QGIS, this is not going to happen unless we proceed with a deep refactoring of the code. Feel free to open a feature request, but I doubt it will be implemented.
|
Author Name: Giovanni Manghi (@gioman)
let's keep it open as feature request then, even if is a long shot.
|
Author Name: Regis Haubourg (@haubourg)
|
Author Name: Alessandro Pasotti (@elpaso)
|
Author Name: Arjan Mossel (Arjan Mossel) It's getting a bit confusing what the feature request is about now.
Are we leaving this open as feature request for 2 or 3? |
Author Name: Jürgen Fischer (@jef-n)
|
This is fixed in QGIS 3 |
Author Name: Arjan Mossel (Arjan Mossel)
Original Redmine Issue: 18428
Redmine category:data_provider/ogr
I understand that it will not be possible to allow simultaneous filtering (provider feature filter) and editing of an OGR layer like Shapefile, GeoPackage, plain SQLite ("editing on a filtered layer won't be possible because of the way OGR provider construct a filtered layer", #25691-6). But with SpatiaLite (and other databases?) it should presumably be possible, and in QGIS2 it is (example: https://gis.stackexchange.com/a/231046).
But in QGIS 3.0 the edit option is unavailable when a filter is applied on a SpatiaLite layer. A regression?
Related issue(s): #23942 (relates), #27773 (duplicates)
Redmine related issue(s): 16027, 19951
The text was updated successfully, but these errors were encountered: