I'm trying to cut and delete some lines in a shapefile with QGIS. The output of this edit is the input to the
Basemap.readshapefile function in matplotlib.
My edited shapefile does not work well. It complains about this:
ValueError: readshapefile can only handle a single shape type per file
After many trials and some research, I noticed using the
ogrinfo tool that the problem might be these "dataless" features (I attach a screenshot with vimdiff between the raw shp file and the edited one):
There are some features that lack the
LINESTRING data. How can I delete these features all together? Currently I'm just select the line by selection all the nodes with the vertex tool and then deleting the nodes.