Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am working with QGIS on a Mac, and understand the process for importing a CSV file. But I do not know how to create the CSVT file to define the CSV file's data types. Can someone please instruct me on how to do this?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

A CSVT file is just a plain text file that you create with the extension .csvt. The file has a single line with the types for each column:

"Integer","Real","String"

Make sure there are no spaces between each , or type.

share|improve this answer

You have to find a programme, where you can write the extention by hand. For windows you can do it in Gedit. First you type the line "Integer","real",... and so on, as it is written in previous answer and after clicking 'save as' you delete the given extention and type 'csvt' for example programme gives 'fields.txt' then you delete 'txt' and write csvt instead to get 'fields.csvt'. Then you click save. It worked for me. Good luck!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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