-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Error saving file only after converting multipolygon to single polygons #58942
Comments
I see that all these files get saved, but stop at around 100KB. They are also saved to my home folder, which is strange. Normally the files are saved to the same folder the qgz project is in, which is not my home folder. |
Respect the OnConvertFormatRegeneratePrimaryKey layer property when making a temporary layer permanent. This ensures that processing outputs which require primary key regeneration will correctly get new primary keys when they are initially run with a memory layer output, and then later that memory layer is made permanent Fixes qgis#58942
So @nyalldawson , the issue is that the converted layer lacks unique IDs per polygon? I will happily test the latest commit, but would also appreciate a workaround in the meantime, as you seem to know what it going wrong here. Thanks! |
Hi, could you tell me when a new release is planned, so that this fix ends up on devices? Or in the meantime if you know of any workaround? I currently cannot proceed my work with this error 😅 I am trying to build latest QGis myself using QtCreator, after giving up on RPM packaging for now. I am unsure if Qt6 packages can already be used, as to my knowledge QGis is still fully using Qt5? |
QGIS 3.40 released the 25th of october, no backport is planned so far.
Both Qt6 and Qt5 are working now, but the official is still Qt5. I don't know the policy for package on redhat/fedora but you'd probably have to build it yourself. |
The easiest workaround would be to remove the fid field from the output layer before saving as gpkg. Alternatively if you directly set the processing tool to store the result in a gpkg it will automatically do this for you (on all current versions) |
thanks! Well that was obvious, they are all the same XD Instead I did
done |
What is the bug or the crash?
I have a geopackage layer with a huge multipolygon on it. It is the result of an overpass turbo OSM extraction, then I cut off the overlap with a different layer. Then I changed the coordinate system to a projected pseudo-mercator one.
All fine until now.
I want to convert the huge polygon into separate polygons, so that I can geoprocess them individually.
I use the "vector - geometry - multi- to single polygon" tool and it works instantly.
Then I try to save the temporary layer and always get the same crash.
Steps to reproduce the issue
demo-file-multipolygon.gpkg.zip
Versions
Supported QGIS version
New profile
Additional context
this only happens with this exact converted file. All others didn't give an error. renaming, checking the name, checking again, changing locations, ... all dont work.
Restarting QGis also didnt work.
Using a BTRFS Filesystem.
The text was updated successfully, but these errors were encountered: