Bug report #13346
Import CSV via "add delimited text layer" ignore first line of file csv
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Data Provider/Delimited Text | ||
Affected QGIS version: | 2.10.1 | Regression?: | No |
Operating System: | linux - debian | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 21399 |
Description
Import CSV via "add delimited text layer" ignore first line of file csv.
The first line contain the name of fields, in the process of import this name are missed.
I repeat de first line and this work.
Versión de QGIS
2.10.1-Pisa
Revisión del código de QGIS
exported
Compilado contra Qt
4.8.6
Ejecutándose contra Qt
4.8.6
Compilado contra GDAL/OGR
1.10.1
Ejecutándose contra GDAL/OGR
1.10.1
Compilado contra GEOS
3.4.2-CAPI-1.8.2
Ejecutándose contra GEOS
3.4.2-CAPI-1.8.2 r3921
Versión del cliente PostgreSQL
9.4.3
Versión de SpatiaLite
4.1.1
Versión de QWT
6.0.0-svn
Versión de PROJ.4
480
Versión de QScintilla2
2.8.4
History
#1 Updated by Carlos Tineo about 9 years ago
- File ptos_dalila.csv added
file csv with first line repeat
#2 Updated by Nathan Woodrow about 9 years ago
Did you use the "First line is headers" option?
#3 Updated by Saber Razmjooei about 9 years ago
- Status changed from Open to Feedback
- Category set to Data Provider/Delimited Text
#4 Updated by Carlos Tineo about 9 years ago
Nathan Woodrow wrote:
Did you use the "First line is headers" option?
I don't use.
#5 Updated by Jukka Rahkonen about 9 years ago
- File QGIS_CSV.png added
Works OK for me with QGIS 2.10.1 on Windows. I edited the csv file to have headers only once, checked the First record has field names option because obviously that is the case. Ask to discard zero lines and press OK. Select the CRS and points appear on the map with attribute names and attribute values in the table. See attached image which shows my options.
#6 Updated by Carlos Tineo about 9 years ago
- Status changed from Feedback to Closed
- File oneRowHeader.png added
- File TwoRow_repeat.png added
Jukka Rahkonen wrote:
Works OK for me with QGIS 2.10.1 on Windows. I edited the csv file to have headers only once, checked the First record has field names option because obviously that is the case. Ask to discard zero lines and press OK. Select the CRS and points appear on the map with attribute names and attribute values in the table. See attached image which shows my options.
REady FIX this
This is my case: attach two image to see the problem (before).
I fix this deleting the config in /home/user/.qgis2 anf /home/user/.config/QGIS
Thank Very much