<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<blockquote type="cite"><b style="color: rgb(0, 0, 0); font-family:
"Times New Roman"; font-size: medium; font-style:
normal; font-variant-ligatures: normal; font-variant-caps:
normal; letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration-thickness: initial; text-decoration-style:
initial; text-decoration-color: initial;">Richard McDonnell</b><span
style="color: rgb(0, 0, 0); font-family: "Times New
Roman"; font-size: medium; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); text-decoration-thickness: initial; text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;"><span> </span></span><a
href="mailto:qgis-user%40lists.osgeo.org?Subject=Re%3A%20%5BQgis-user%5D%20Problem%20Noticed%20with%20QGIS&In-Reply-To=%3C9708d6dac99943929281a173e54a9e6f%40opw.ie%3E"
title="[Qgis-user] Problem Noticed with QGIS"
style="font-family: "Times New Roman"; font-size:
medium; font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; orphans: 2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;">richard.mcdonnell
at opw.ie</a><br style="color: rgb(0, 0, 0); font-family:
"Times New Roman"; font-size: medium; font-style:
normal; font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; text-decoration-thickness:
initial; text-decoration-style: initial; text-decoration-color:
initial;">
<i style="color: rgb(0, 0, 0); font-family: "Times New
Roman"; font-size: medium; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; orphans: 2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration-thickness: initial; text-decoration-style:
initial; text-decoration-color: initial;">Tue Nov 29 07:17:48
PST 2022</i>
<hr style="color: rgb(0, 0, 0); font-family: "Times New
Roman"; font-size: medium; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; text-decoration-thickness:
initial; text-decoration-style: initial; text-decoration-color:
initial;">
<pre style="white-space: pre-wrap; color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">1. If I use the option [Create temporary Layer] it produces a Singlepart Geometry as Expected, If I save the output to a File, the resultant geometry is stated as Polygon (MultiPolygon) Its the same for Linestrings also.
</pre>
</blockquote>
<br>
Hi Richard,<br>
as explained (also by me) in the linked issue report [1], the line
(PolyLine) and polygon (Polygon) ESRI Shapefile layer types are
actually multi-part layer types which can store both multi-part
geometries with only one part and multi-part geometries with more
than one part.<br>
Only the point layer type has two different ESRI Shapefile layer
types: the ESRI Shapefile Point type (which is a single-part type
and can store only single-part geometries) and the ESRI Shapefile
MultiPoint type (which is a multi-part type and can store multi-part
geometries both with only one part and with more than one part).<br>
<br>
Please see the ESRI Shapefile Technical Description [2].<br>
<br>
If you want to check that a line (PolyLine) and polygon (Polygon)
ESRI Shapefile layer imported in QGIS contains features with only 1
part, you need to check the number of part for each feature, for
example using the num_geometries function [3] in the field
calculator.<br>
<br>
Best regards.<br>
<br>
Andrea Giudiceandrea<br>
<br>
[1] <a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS/issues/50720">https://github.com/qgis/QGIS/issues/50720</a><br>
[2] <a class="moz-txt-link-freetext" href="https://www.esri.com/Library/Whitepapers/Pdfs/Shapefile.pdf/">https://www.esri.com/Library/Whitepapers/Pdfs/Shapefile.pdf/</a><br>
[3]
<a class="moz-txt-link-freetext" href="https://docs.qgis.org/3.22/en/docs/user_manual/expressions/functions_list.html#num-geometries">https://docs.qgis.org/3.22/en/docs/user_manual/expressions/functions_list.html#num-geometries</a>
</body>
</html>