<p dir="ltr">I've encountered the same problem when i try to split some polygons.</p>
<p dir="ltr">I don't really understand what was the problem, just some hint:</p>
<p dir="ltr">- it occours only on windows. The same shapefile works fine on Linux.<br>
- it also affects qgis 2.14 <br>
- is not connected with topology error. The problem remain also after using v.clean.<br></p>
<p dir="ltr">I hope this could be useful<br>
Luca</p>
<div class="gmail_quote">Il 16/Set/2016 03:08, "Nyall Dawson" <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Unfortunately a fairly nasty regression has slipped in to 2.16 and is<br>
still present on master. This results in shapefile corruption in<br>
certain circumstances.<br>
<br>
While I've hit this issue maybe 3 or 4 times in the last 2 months, I<br>
haven't been able to track down exactly what causes this. It seems<br>
related to using the split or reshape tool on a shapefile, then saving<br>
the changes and getting the errors "Cannot reopen datasource<br>
xxx.shp|layerid=0 in read-only mode" and "Data source is invalid<br>
(Unable to open xxx.shx or xxx.SHX.Try --config SHAPE_RESTORE_SHX true<br>
to restore or create it)" in the log.<br>
<br>
A full report is at <a href="http://hub.qgis.org/issues/15570" rel="noreferrer" target="_blank">http://hub.qgis.org/issues/<wbr>15570</a><br>
<br>
Hopefully we can resolve this before the next round of releases. In<br>
the meantime, there's a workaround for recovering data:<br>
<br>
In the same folder as the shapefile there'll be additional files<br>
"xxx_packed.shp" and "xxx_packed.shx". Renaming the "xxx_packed.shx"<br>
file to "xxx.shx" allows the original shapefile to be reopened.<br>
<br>
Nyall<br>
______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></blockquote></div>