Bug report #9375
Simplification causes GEOS exceptions when layer has labels
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||Yes||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||17975|
I'm running into an issue with the new rendering simplification option. With this enabled on a layer which has labels shown the log is showing a lot of GEOS exceptions:
Exception: IllegalArgumentException: Invalid number of points in LinearRing found 2 - must be 0 or >= 4
Exception: Unknown exception thrown
Happy to provide test datasets if required.
#5 Updated by Alvaro Huarte almost 7 years ago
Hi Nyall, if you are testing a postgis layer, then these error comes from a bug in ST_Simplify function of postgis ( http://trac.osgeo.org/postgis/ticket/1698 ). This bug collapses the geometries when the tolerance is too much big.
If you are using postgis, this patch fixes it: