[Qgis-developer] Issue related with Bug #8822 - Repack Issue

Zeben M. C. zebensui at gmail.com
Wed Feb 5 02:14:20 PST 2014


Hey guys, I have tried to put this issue on the tracking manager but I have
no account for this.

I think this issue is related to another https://hub.qgis.org/issues/8822,
however, the bugfix applied to close this effect is not suffcient for this
case.

The shapefile is inconsistent , two files "*packed.shp" and *packed.shx"
are created. The error occurs in line:

 OGR_DS_ExecuteSQL (ogrDataSource, sql.constData (), NULL, NULL);


in function "repack" of  "qgsogrprovider.cpp".

And the log was:

src/providers/ogr/qgsogrprovider.cpp: 138: (repack) SQL: REPACK LG_CULT
> qgis: shpopen.c:1160: SHPWriteObject: Assertion `psObject->nSHPType ==
> psSHP->nShapeType || psObject->nSHPType == 0' failed.



Instructions to reproduce this bug:

   1. Download qgis project: https://db.tt/dOBljNoG
   2. Open the proyect (provided in zip).
   3. Select the features with attribute "GEOCODE" equals to "Merge_A" and
   "Merge_B".
   4. Merge Selected Features (current two features is selected).
   5. Press button "Save Layer Edits".


Environment:

   - Versión de QGIS 2.0.1-Dufour
   - Revisión del código de QGIS d94c044
   - Compilado contra Qt 4.8.5
   - Ejecutándose contra Qt 4.8.5
   - Compilado contra GDAL/OGR 1.10.0
   - Ejecutándose contra GDAL/OGR 1.10.1
   - Compilado contra GEOS 3.4.2-CAPI-1.8.2
   - Ejecutándose contra GEOS 3.4.2-CAPI-1.8.2 r3921
   - Versión del cliente PostgreSQL 9.2.4
   - Versión de SpatiaLite 4.1.1
   - Versión de QWT 5.2.3
   - Versión de PROJ.4 480
   - Versión de QScintilla2 2.7.2


Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140205/a9123bdc/attachment.html>


More information about the Qgis-developer mailing list