[QGIS-Developer] Importing shp into gpkg or PostGIS as SINGLE geometry gives MULTI?

Paolo Cavallini cavallini at faunalia.it
Mon Sep 30 23:31:07 PDT 2019


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.
Cheers.

On 1 October 2019 08:54:09 EEST, Harrissou <delazj at gmail.com> wrote:
>Hi
>I may be wrong but I think this "issue" has been raised in the past
>(with Processing? By Matteo?) and from what I understood in the
>discussion, shapefiles are multi by default, not single (even if the
>features are of single part, the layer is identified as multi). Reason
>why they are handled as such.
>Hoping that I do not say nonsense and confuse people more than
>necessary...
>
>Regards,
>Harrissou
>
>Le 1 octobre 2019 07:03:24 GMT+02:00, Paolo Cavallini
><cavallini at faunalia.it> a écrit :
>>this is my case indeed: a single line
>>I attach a sample here.
>>cheers.
>>
>>On 01/10/19 07:01, Andrea Peri wrote:
>>> I guess in a geopck it could reduce a multi in single only if it was
>>a
>>> multi but with one part only for every geometry.
>>> 
>>> A.
>>> 
>>> 
>>> Il mar 1 ott 2019, 06:42 Paolo Cavallini <cavallini at faunalia.it
>>> <mailto:cavallini at faunalia.it>> ha scritto:
>>> 
>>>     Hi all,
>>> 
>>>     I have a shp with a single line. I drag and drop it from DB
>>Manager into
>>>     either a geopackage or PostGIS, choosing "single instead of
>>multi"
>>>     option. The resulting layer is still multi, as shown in DB
>>Manager
>>>     itself; same thing with a memory layer, it works. QGIS 3.4
>>>     to me it looks like a bug. opinions?
>>>     cheers.
>>> 
>>>     -- 
>>>     Paolo Cavallini - www.faunalia.eu <http://www.faunalia.eu>
>>>     QGIS.ORG <http://QGIS.ORG> Chair:
>>>     http://planet.qgis.org/planet/user/28/tag/qgis%20board/
>>>     _______________________________________________
>>>     QGIS-Developer mailing list
>>>     QGIS-Developer at lists.osgeo.org
>><mailto:QGIS-Developer at lists.osgeo.org>
>>>     List info:
>>https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>     Unsubscribe:
>>https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> 
>>> 
>>> _______________________________________________
>>> QGIS-Developer mailing list
>>> QGIS-Developer at lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> 
>>
>>-- 
>>Paolo Cavallini - www.faunalia.eu
>>QGIS.ORG Chair:
>>http://planet.qgis.org/planet/user/28/tag/qgis%20board/
>
>-- 
>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser
>ma brièveté.

-- 
Sorry for being short
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20191001/8ba8840e/attachment.html>


More information about the QGIS-Developer mailing list