5

When I try to save a specific vector shapefile (line) as another vector shapefile line also (Backup Copy) in QGIS version 2.10 or 2.18.3 I get the following error message:

Export to vector file failed. Error: Feature write errors: Feature creation error (OGR error: Attempt to write non-linestring (POINT) geometry to ARC type shapefile.) Only 236 of 237 features written.

I think there is a geometry problem but I do not know how to isolate the problem or how to troubleshoot the error. Does anybody have any suggestions on how to fix this?

This is the same as the export to shapefile tool in ArcGIS

2
  • 1
    Do you have any null or empty geometry in your table?
    – MaryBeth
    Commented Feb 13, 2017 at 16:19
  • This looks like a vertex collapse issue. Shapefile lines require at least two disparate vertices. The "error" seems more of a warning.
    – Vince
    Commented Feb 13, 2017 at 16:30

1 Answer 1

5

You can install the Vertices Counter plugin to see if you have a one-point line feature in your layer.

Additionally, you can create a virtual field of type real and content $length, and let the whole attribute table sort by that. You should then have a zero-length feature at the top or bottom of the list.

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.