I've imported a .csv file (with relative .csvt) in QGIS 2.8.4 adding a delimited text layer... the table was correctly been imported but the table fields have a length of zero... the fields types instead have been correctly read from the .csvt, which obviously specifies also the fields lengths.



  • The fields lengths are correctly read simply dragging and dropping the .csv file into the layer panel... (?!?) Jun 23, 2016 at 9:14
  • Could you maybe make a printscreen of the problem? Jun 24, 2016 at 11:28
  • 1
    Can you provide a sample of the data and csvt? Jun 24, 2016 at 15:47
  • Thanks @AndreJ I didn't know that QGIS doesn't read the .csvt with "Add delimited text" Jun 24, 2016 at 19:45

1 Answer 1


According to gdal.org/drv_csv, you can define width and precision in the csvt file.


According to Why are some columns not recognized as numeric even though I have a CSVT?, QGIS does NOT read the csvt with Add delimited text. Instead, it makes some kind of educated guess about the data types

Try Add Vector Layer instead. Draging and dropping the csv file from an explorer window to the legend will do the same, as you experienced.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.