Bug report #15113
Inverted polygon renderer fails with CurvePolygon geometry
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Hugo Mercier | ||
Category: | Symbology | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 23055 |
Description
If the layer is of type CurvePolygon, the inverted polygon renderer displays a message that this renderer type only works with Polygon and MultiPolygon layers.
It would be nice, if CurvePolygon would be supported as well by segmentizing on the fly before using it in the geometry and rendering operations.
Attached is sample data with one CurvePolygon - you can use http://webdienste.zugmap.ch/luftbild2011/service.svc/get as a WMS in the same projection (aerial image) as a background for testing.
History
#1 Updated by Hugo Mercier over 8 years ago
Hi,
I've just tried the inverted polygon renderer on a curvedpolygon and it seems to work fine.
The attached file only contains curved lines, not polygons ... am I missing something ?
#2 Updated by Giovanni Manghi over 8 years ago
- Operating System deleted (
all) - Status changed from Open to Feedback
#3 Updated by Andreas Neumann over 8 years ago
- File border_risch_curve_polygon.gpkg added
Im am sorry, it was the wrong data set - you are right, it was line data, but with WKB Type "Compound Curve".
The data I upload now is "Polygon" WKB Type "CurvePolygon".
You need a recent GDAL to load it correctly.
#4 Updated by Andreas Neumann over 8 years ago
- File inverted_polygon_renderer_error_message.png added
In the attached png image you can see the error message I get with border_risch_curve_polygon.gpkg
#5 Updated by Hugo Mercier over 8 years ago
Thanks.
I can reproduce.
After a quick look at the code, that should not be a big deal to fix
#6 Updated by Hugo Mercier over 8 years ago
- Status changed from Feedback to Closed
Fixed in changeset defd7388bc612f0dd7c0a69f92fa27af09422357.