[QGIS-Developer] Field Name limited to 10 characters for a geopackage
Catania, Luke A ERDC-RDE-GRL-VA CIV
Luke.A.Catania at erdc.dren.mil
Tue Nov 26 20:48:18 PST 2024
I am using a geopackage as a data source and when I add a new field it is limited to 10 characters. I thought that was only a limitation for ESRI shapefiles.
New_field = "Land Use Category"
new_field = QgsField(field_name, QVariant.String)
vector_layer.dataProvider().addAttributes([new_field])
Field name is truncated to Land_Use_C
Luke Catania
US Army ERDC-GRL
JCMS Site Planning Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20241127/c8f51fae/attachment.htm>
More information about the QGIS-Developer
mailing list