Skip to content
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

vector layer edits disappear from viewer when saved through the layers panel. #23410

Closed
qgib opened this issue Aug 24, 2016 · 3 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@qgib
Copy link
Contributor

qgib commented Aug 24, 2016

Author Name: will skora (@skorasaurus)
Original Redmine Issue: 15486
Affected QGIS version: 2.16.1
Redmine category:unknown


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/

To reproduce:
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


@qgib
Copy link
Contributor Author

qgib commented Aug 24, 2016

Author Name: will skora (@skorasaurus)


"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"
should be
"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.

@qgib
Copy link
Contributor Author

qgib commented Aug 27, 2016

Author Name: will skora (@skorasaurus)


The cause of this bug is within GDAL, has been identified and fixed in GDAL 2.1.1 - https://trac.osgeo.org/gdal/ticket/6538


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Sep 22, 2017

Author Name: Jürgen Fischer (@jef-n)


  • category_id was configured as Unknown

@qgib qgib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant