<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Correct, but in the importing popup there is an option to transform into single. It usually works, at least for points, so it's unclear why it shouldn't in this case.<br>
Cheers.<br></blockquote><div><br></div><div><br></div><div>despite its name, that has been always confusing, that option in DB Manager never transformed geometries to SINGLE from MULTI along the import process).</div><div><br></div><div> What the option means (meant?) is that if I have a layer that is declared as MULTI but actually has no multipart geometries in it, then it can be imported as a non-MULTI table.</div><div><br></div><div>In past QGIS releases if you had a layer with a multi-geometry and checked that option then DB manager returned an error like</div><div><br></div><div><p style="margin:0px;text-indent:0px;white-space:pre-wrap">Error 7</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">Feature write errors:</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">Creation error for features from #0 to #0. Provider errors was: </p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">Geometry type MultiLineString not compatible with provider type LineString.</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">PostGIS error while adding features: ERROR:  Geometry type (MultiLineString) does not match column type (LineString)</p></div><div><br></div><div> now it does not and imports to MULTI anyway and silently. And it does also if you don't have any multi-geometry, which of course are both bugs and regressions.</div><div><br></div><div><br><p style="margin:0px;text-indent:0px;white-space:pre-wrap">Error 7</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">Feature write errors:</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">Creation error for features from #0 to #0. Provider errors was: </p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">Geometry type MultiLineString not compatible with provider type LineString.</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">PostGIS error while adding features: ERROR:  Geometry type (MultiLineString) does not match column type (LineString)</p></div><div>-- G --<br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div>