4

I downloaded QGIS 3.4.0 and try to save edits in .geojson file. I can save new objects, but not edits in attributes. Insted of it, QGIS creates .tmp file with my chаnges into the same folder with editing .geojson. To save my edits I had to copy the text of .tmp file and put it by hand in my .geojson. How to enforse QGIS 3.4.0 save changes in layer like it was in 3.2.3 and do not create .tmp files?

UPD: For further validation analysis I use .geojson in classic JSON tree-like structure, but QGIS - in his own structure stroke-by-stroke. And if I export my .geojson by QGIS, it saves the file in his structure and this new one could be edited and saved with no any .tmp files. So it looks like QGIS 3.4 cannot save edits if .geojson file has tree-like structure (unlike QGIS 3.2).

UPD2:Below parts of broken and working GeoJSONs

Broken: Broken GeoJSON

Working: Working GeoJSON

  • At first I thought that it depends on version (3.4.0 or 3.4.1), but the problem occurs in both versions. – mikhukh Nov 6 '18 at 13:57
  • 1
    Its the same for the current QGIS-LTR (2.18.26). I assume it's related to GDAL/OGR 2.3.2. – fuzzysolutions Dec 17 '18 at 8:16
  • Save As, export to a new file does not appear to fix it for me (2.18.27, GDAL 2.4, Win 10). Can you post example of broken vs working json files @mikhukh? – wildintellect Feb 5 at 21:43
  • @wildintellect Thank you for the comment, I add examples in question's description – mikhukh Feb 15 at 10:50
  • 1
    There is a bug report on issues.qgis.org: issues.qgis.org/issues/20760. The issue seems to occur on Windows only. – fuzzysolutions Apr 16 at 9:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.