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)

in reply to:  description comment:1 by jef, 14 years ago

r12386 should fix the crash, but reshaping still doesn't work for the example.

comment:2 by lutra, 14 years ago

Platform: DebianAll
Priority: critical: causes crash or data corruptionmajor: 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 jef, 14 years ago

Owner: changed from nobody to mhugent

comment:4 by mhugent, 14 years ago

Looks like a geos problem to me. Please provide a link to the testdata.

comment:5 by lutra, 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).

comment:6 by mhugent, 14 years ago

Resolution: fixed
Status: newclosed

This should be fixed in r12595

Note: See TracTickets for help on using tickets.