4

I have a shapefile with 1722 rows representing a road network. There is a feature somewhere, somehow that is kind of invisible, specifically the feature with id 1780. When I execute an expression

 "id" = 1780

the bar shows there is a result somewhere. When I try to zoom on the selected result it's nowhere. I'm asking because I try to load the dataset into postgis and this way I'm getting a null geometry.

Any idea what is causing it?

3
  • 1
    You said it yourself, it's a null geometry.
    – HDunn
    Commented Dec 10, 2016 at 22:05
  • Yeah, but how can I find it in the shapefile dataset so I can delete it? When I try to zoom in the selected it zooms nowhere
    – Stefanos
    Commented Dec 10, 2016 at 22:11
  • 5
    Use the attribute table. If it's selectable, you can simply delete it
    – HDunn
    Commented Dec 10, 2016 at 22:11

1 Answer 1

2

Manually, you can zoom to the layer's extent, open the attribute table, and delete the row with the id you already know.

A python solution is given at How to select features with NULL Geometry from Shapefiles?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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