2

I was editing a polygon shapefile in QGIS (3.0.1) today when suddenly 966 out of 5382 polygons disappeared from the map. I had been changing attribute information in the table, cutting polygons, etc as I was going along and saving my shapefile regularly. The polygons are still in the attribute table (if I select all my polygons using a spatial selection and then inverse the selection, the lines with the missing polygons show up) but an error message (zoom failed, feature has no geometry, "le zoom vers l'entité a échouché, l'entité n'a pas de géométrie") appears when I attempt to find those polygons. There was no spatial clumping to the lost polygons nor a common attribute.

enter image description here

Comparison of yesterday's file (purple underlay) with today's corrupted file (black hatched)

I can't share the file because it is proprietary so I realize that it is limited what can be troubleshooted just on my description. I have the back-up in our server from end of last workday so I will have only lost one day of work but it is still frustrating.

2
  • 1
    I remember QGIS 3.0 being very buggy, especially the first few releases (3.0.0, 3.0.1, etc). You should update to 3.4. It won't bring back your missing geometry, but it may prevent the problem from happening again.
    – csk
    Dec 1, 2018 at 23:37
  • 1
    I got the same problem even in QGIS 3.4 now. Yesterday I worked on my shapefile with like 2.017 polygons. Sometimes I delete or change something in the attribute table and after saving, hundreds of polygons just disappeared. I have no idea why. Restarted QGIS, opened the project in older version (2.18) - nothing changed! Like user3386170 says, all the entries are still in the attribute table, but their geometry is somehow lost all of a sudden. The error message 'Zoom failed, feature has no geometry' appaears. That never ever happened to me before and its really frustrating! Does anyone has any Sep 13, 2019 at 9:28

2 Answers 2

1

Not sure if this is any help, but have you got the polygons categorised into colours etc in the properties panel. It happened on mine where i changed attribute but never had the new attribute in the category so manually added it and then it showed up.

1
  • That is a good point. It is not the case for me but it could still be useful for others who get to this post. Dec 3, 2018 at 13:47
0

Not really an answer but that's what I will do to diagnose such an error :

  • Verify the geometry and repair any error you find. (See this for zoom related disappearing polygon)
  • Made sure it's not a display issue (transparent symbol or no symbology) (Like @Steve said in his answer)
  • Check that there are no provider feature filter set (but if there are some you shouldn't be able to see the attribute of the missing polygon)
  • Get the geometry in WKT format to see if the geometry of the missing polygon has really been erased (and if so trying to understand why : arepolygon overlapping or could you have inadvertently selected some polygon...)

Also in the past I experience some problem when editing shapefile if the same shapefile layer was loaded several time. So if you use the same layer several time you may try to remove all copy but the one you are editing.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.