Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing in temporary scratch layer leads to geometry corruption (unable to save as Shapefile) #23639

Closed
qgib opened this issue Oct 17, 2016 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Data Provider Related to specific vector, raster or mesh data providers High Priority

Comments

@qgib
Copy link
Contributor

qgib commented Oct 17, 2016

Author Name: amedeo fadini (amedeo fadini)
Original Redmine Issue: 15716
Affected QGIS version: master_2
Redmine category:data_provider/ogr


I started just now to use a temporary scratch layer for digitizing features: in detail I need to split an existing layer of polygons in subregions, according to a raster level.
I succesfully copied the existing features in temporary layer, saving it as shapefile seems ok. After splitting one geometry in different subregion, trying to save as ESRi shapefile lead to an error
"Error: Feature write errors:
Feature geometry not imported (OGR error: )"
And opening the shapefile shows the previously splitted geometries with vertices coordinates mismatch.
Replicated with Alaska sample data "lakes.shp" Open, add, new temporary scratch layer, copy geometries from lakes, split save as ESRI Shapefile.
Corrupted layer and screenshot attached.

Qgsi code revision f124107
GDAL 1.10.1 GEOS 3.4.2-CAPI-1.8.2 r3921

Maybe GDAL is outdated?


@qgib
Copy link
Contributor Author

qgib commented Jan 5, 2017

Author Name: amedeo fadini (amedeo fadini)


Hello,
Now it works, don't know if is a gdal related problem or was fixed in new version
I have updated to Debian testing cause I was looking for GDAl 2.1 and geopackage support. Then I have compiled GDAL 2.1.2 for MDB support.
Now with Alaska data set, after splitting the geometry and save to ESRI shapefile there's no error and the resulting shapefile seems OK in QGIS.

Qgis version 2.99.0-Master code revision f59acad
Gdal/ogr 2.1.2 GEOS 3.5.1-CAPI-1.9.1 r4246


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Data Provider Related to specific vector, raster or mesh data providers Crash/Data Corruption labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Data Provider Related to specific vector, raster or mesh data providers High Priority
Projects
None yet
Development

No branches or pull requests

1 participant