Bug report #3137
Save as shapefile fails if field names are longer than 10 characters
|Affected QGIS version:||Regression?:||No|
|Operating System:||All||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||fixed|
|Crashes QGIS or corrupts data:||Copied to github as #:||13197|
If I try to save the attached MapInfo file, I get:
Export to vector file failed. Error: trimming attribute name 'PM10_AVG_max' to ten significant characters produces duplicate column name.
and export fails. It seems a limitation of OGR, but perhaps we could be smarter and replace the last character with a serial.
Otherwise better forward this ticket to GDAL trac?
#5 Updated by Jürgen Fischer about 10 years ago
If this is fixed in OGR we need to keep in mind to adapt http://trac.osgeo.org/qgis/browser/trunk/qgis/src/core/qgsvectorfilewriter.cpp#L312 accordingly.