Bug report #15113

Inverted polygon renderer fails with CurvePolygon geometry

Added by Andreas Neumann about 8 years ago. Updated about 8 years ago.

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.

circular_arcs_kt_zug.gpkg - Sample data with CurvePolygon (1.63 MB) Andreas Neumann, 2016-06-22 11:02 PM

border_risch_curve_polygon.gpkg - CurvePolygon data Community Risch (55 KB) Andreas Neumann, 2016-06-23 04:10 AM

inverted_polygon_renderer_error_message.png - Error message on inverted polygon renderer style (78.4 KB) Andreas Neumann, 2016-06-23 04:31 AM

Associated revisions

Revision 8976c9de
Added by Hugo Mercier about 8 years ago

Allow curved polygons to be inverted (fixes #15113)

Revision defd7388
Added by Hugo Mercier about 8 years ago

Merge pull request #3229 from mhugo/fix_15113

Allow curved polygons to be inverted (fixes #15113)

History

#1 Updated by Hugo Mercier about 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 about 8 years ago

  • Operating System deleted (all)
  • Status changed from Open to Feedback

#3 Updated by Andreas Neumann about 8 years ago

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 about 8 years ago

In the attached png image you can see the error message I get with border_risch_curve_polygon.gpkg

#5 Updated by Hugo Mercier about 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 about 8 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF