3

Background:

At 3.14.16, I'm trying to learn a little more about Geometry Generator, in this case convex hull. I created a simple test point layer with six points. I then used Geometry Generator with the expression convex_hull($geometry), expecting an outline hull to display. However, none appeared, as shown in the screenshot below. Only the original points appear.

In my search for a solution, I came across this SE GIS post, where convexHull($geometry) was successfully used. Unfortunately, that expression did not result in a outline for my points.

Question:

How do I display a convex hull around a point layer using Geometry Generator?

enter image description here

5

You need to select Polygon/ MultiPolygon geometry type for the geometry generator symbol layer, and add the collect function to your expression:

convex_hull(collect($geometry))

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.