I have a point shapefile that contain a batch of features. I want to create polygons from these points. Each point should define a boundary of polygon.
There is an unique "ID"
field that group points, but I don't have a order field to connect the points by order.
If I run "Points to line" tool I get some zig-zag lines and I don't want it connected in that way, I want each point to define outer boundary of each polygon. This should be done in QGIS.
I have tried Points2One Plugin but I don't have an order field to run this tool and get what I need.
-
6Can you please show us a picture with your points? Are you aware of "Concave hull (alpha shapes)" and "Convex hull"?Taras– Taras ♦2020年11月13日 07:44:39 +00:00Commented Nov 13, 2020 at 7:44
-
@Taras That is exactly what I need. You can add it as an answer. Actually "Concave hull- k- nearest neighborhood" is all that I need.user87349– user873492020年11月16日 14:01:10 +00:00Commented Nov 16, 2020 at 14:01
1 Answer 1
Let's assume there is a point layer called 'end' with its attribute table, see the image below.
Points are categorized by "class"
(in your case they are grouped by the unique "ID"
field) and spatially distributed (clustered).
I can suggest using the "Minimum bounding geometry" with 'convex hull' as an enclosing geometry type and grouped by a field.
Creates geometries which enclose the features from an input layer. The features can be grouped by a field. The output layer will then contain one feature per group value with a geometry (MBB) that covers the geometries of the features with matching values.
The result of this algorithm will look like
The same result can be achieved by means of "Concave hull (k-nearest neighbor)"
Generates a concave hull polygon from a set of points. If the input layer is a line or polygon layer, it will use the vertices.
Why not "Concave hull (alpha shapes)" or "Convex hull" algorithm, because they simply do not have a grouping field.
References:
-
How do I expand this solution so that the created polygons tesselate (no gaps between polygons) the area?Kobus Herbst– Kobus Herbst2021年02月18日 10:10:20 +00:00Commented Feb 18, 2021 at 10:10
Explore related questions
See similar questions with these tags.