-
-
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
When saving a shp file object, the object is lost. #53058
Comments
@kralalala, could you please provide the layer, attaching it to this issue report as zipped file or as an URL to download it? |
This is the original shp file of the layer where the error occurred |
@kralalala, I've imported the layer in QGIS 3.28.5 and then exported it using the "Save Vector Layer as..." dialog (via layer context menu "Export"->"Save Features As..." or main menu "Layer"->"Save As...") and it seems to me the exported layer contains the same features and it is visually identical to the original layer Could you please describe in details the exact steps needed in order for the issue to occur? Could you please specify all the info requested in the issue report form (e.g. the content of the Help->About window). |
I may be wrong but looks like @kralalala did not provide the original layer (the green one in his top message) |
Thanks @DelazJ, I didn't noticed it. |
The result of modifying and saving some contents of the field in the green layer is the red layer. Normally, there is no error when saving. However, sometimes when saving after a job, the object disappears like that. So I posted it in the question because I thought I could find a problem in the error file. |
@kralalala thanks for reporting the issue. I'm sorry the original file has been corrupted. Could you please specify the content of the QGIS Help->About window in order to know which Operative System QGIS is running on and which GDAL version QGIS is using in your system? |
@kralalala it seems the Shapefile index file has been mostly corrupted. Find attached a repaired version of your layer with all but 1 the original features and with only some feature geometry with incorrect vertices. Hopefully it will help you to restore your data. |
QGIS GDAL version is this. Thank you for your help in restoring the data. Could you tell me how to restore it? |
@kralalala is ytour shapefile stored in a folder which is synced by some cloud provider, e.g. dropbox? |
What is the bug or the crash?
When saving a shp file object, the object is lost.
The number of objects before and after saving is the same, but the object shape is lost. If you look at the picture, green is the original object, and red is the object after saving. I didn't do anything else, I just modified the contents of the field and saved it, but that happens. Is there a solution?
*Original object
*Objects after saving
*before and after comparison
+Additional
When I put the shp file in the cad, this error occurs.
Steps to reproduce the issue
I don't know
Versions
QGIS 3.28.5
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: