[QGIS-Developer] Can't import GeoPackage generated by QGIS into PostGIS

Patrick Dunford enzedrailmaps at gmail.com
Sun Mar 31 10:16:12 PDT 2019


It would indeed seem from my experience any shorter string is being 
replaced by a long one. However I am unsure what a zero length string is 
supposed to achieve in a geopackage or any format.

On 1/04/19 3:30 AM, Stefan Keller wrote:
> Hi,
>
> I could replicate this behavior (limiting string to 255) using QGIS 3
> by exporting a layer to a GeoPackage.
> My impression is, that GeoPackage data provider is replacing
> String/QString field types which have length 0, by a default length of
> 255 chars (which is obviously wrong).
>
> :Stefan
>
> Am So., 31. März 2019 um 13:47 Uhr schrieb Anita Graser <anitagraser at gmx.at>:
>>
>>
>> On Sun, Mar 31, 2019 at 11:42 AM Anita Graser <anitagraser at gmx.at> wrote:
>>> On Sat, Mar 30, 2019 at 10:11 PM Alessandro Pasotti <apasotti at gmail.com> wrote:
>>>> On Sat, Mar 30, 2019, 21:55 Anita Graser <anitagraser at gmx.at> wrote:
>>>>> - Option #2: QGIS shouldn't create GeoPackages that store long strings in field defined as text(255)
>>> I'll create a ticket for #2 then.
>>
>> Here it is: https://issues.qgis.org/issues/21714
>>
>> Regards,
>> Anita
>>
>>
>> _______________________________________________
>> 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
> _______________________________________________
> 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


More information about the QGIS-Developer mailing list