Opened 14 years ago
Closed 14 years ago
#2224 closed bug (fixed)
reshape tool doesn't work with a particular vector layer (shape, postgis, spatialite)
Reported by: | lutra | Owned by: | mhugent |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | Version 1.4.0 |
Component: | Digitising | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
Tested on shapes, postgis and spatialite on qgis trunk compiled today (ubuntu 9.04). As vector layer to reproduce the problem you can use the layer "regions" you can find in the spatialite sample dataset.
It does not happens will all the polygons in this layer, but it happens with the majority of them.
The console returns:
Warning 1: Geometry of polygon of fid 54 cannot be translated to Simple Geometry. All polygons will be contained in a multipolygon. Warning 1: Geometry of polygon of fid 59 cannot be translated to Simple Geometry. All polygons will be contained in a multipolygon. Warning 1: Geometry of polygon of fid 54 cannot be translated to Simple Geometry. All polygons will be contained in a multipolygon. Warning 1: Geometry of polygon of fid 59 cannot be translated to Simple Geometry. All polygons will be contained in a multipolygon. Warning 1: Geometry of polygon of fid 54 cannot be translated to Simple Geometry. All polygons will be contained in a multipolygon. Warning 1: Geometry of polygon of fid 59 cannot be translated to Simple Geometry. All polygons will be contained in a multipolygon. Warning 1: Geometry of polygon of fid 54 cannot be translated to Simple Geometry. All polygons will be contained in a multipolygon. Warning 1: Geometry of polygon of fid 59 cannot be translated to Simple Geometry. All polygons will be contained in a multipolygon. Warning 1: Geometry of polygon of fid 54 cannot be translated to Simple Geometry. All polygons will be contained in a multipolygon. Warning 1: Geometry of polygon of fid 59 cannot be translated to Simple Geometry. All polygons will be contained in a multipolygon. Warning 1: Geometry of polygon of fid 54 cannot be translated to Simple Geometry. All polygons will be contained in a multipolygon. Warning 1: Geometry of polygon of fid 59 cannot be translated to Simple Geometry. All polygons will be contained in a multipolygon. Warning 1: Geometry of polygon of fid 54 cannot be translated to Simple Geometry. All polygons will be contained in a multipolygon. Warning 1: Geometry of polygon of fid 59 cannot be translated to Simple Geometry. All polygons will be contained in a multipolygon. bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 bufferOriginalPrecision failed (TopologyException: depth mismatch at 347584 5.01011e+06), trying with reduced precision recomputing with precision scale factor = 1e+06 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+06 ReScaler: offsetX,Y: 0,0 scaleFactor: 1e+06 Segmentation fault
Change History (6)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
Platform: | Debian → All |
---|---|
Priority: | critical: causes crash or data corruption → major: does not work as expected |
Summary: | reshape tool crashes qgis (shapes, postgis, spatialite) → reshape tool doesn't work with a particular vector layer (shape, postgis, spatialite) |
true, reshaping doesn't work... at least in all the polygons that, before the fix, crashed qgis when using the tool...
New description:
Tested on shapes, postgis and spatialite on qgis trunk compiled today (ubuntu 9.04). As vector layer to reproduce the problem you can use the layer "regions" you can find in the spatialite sample dataset.
Reshape tool works with a few of the polygons in this layer, but does nothing with the majority of them.
comment:3 by , 14 years ago
Owner: | changed from | to
---|
comment:5 by , 14 years ago
http://www.gaia-gis.it/spatialite/test-2.3.sqlite.gz
I used the "regions" layer (also as shape and as postgis vector).
r12386 should fix the crash, but reshaping still doesn't work for the example.