Bug report #15486
vector layer edits disappear from viewer when saved through the layers panel.
|Affected QGIS version:||2.16.1||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||23410|
My edits to my geojson file are disappearing from the viewer when I save them in the layers panel.
I been able to reproduce this on QGIS 2.16.1 in windows and on 2.14 in Linux.
I've checked and the file is valid GEOJSON according to http://geojsonlint.com/
Create new project
Open attached geojson file as a vector layer in qgis.
toggle as editable
Select one of the features (ideally not one that doesn't have old brooklyn marked
Copy and paste the same feature to the layer.
Use edit node tool on one of these 2 features.
Move several nodes, enough to make it distinct from the other polygon.
Click Save layers in the layers panel.
At this point, your newly modified layer disappears. I have confirmed that the edits to vector file are saved. I open the geojson file in a text editor and see that the second layer is there and also when I upload the same file to geojson.io .
What should happen: the newly created layer and its edits should still appear.
If you would like to see this happen in action, see this video - https://vimeo.com/180102675
#1 Updated by will skora almost 4 years ago
"I open the geojson file in a text editor and see that the second layer is there and also when I upload the same file to geojson.io"
"I saw the newly created polygon existed when I viewed the file in a text editor and when I uploaded it to geojson.io."
I also notice that I add the attached geojson file as a new vector layer in a brand new project in Qgis 2.16 on windows, qgis does not display the recent edits that I made in the video.