[Qgis-developer] QGIS 2.10.1 Pisa - Read CSV file problem

Zoltan Szecsei zoltans at geograph.co.za
Tue Aug 4 05:15:51 PDT 2015


Hi Frank,
Reasonable thought, thanks - but I named the 1p (not p1) and that worked.

Would be interesting to see what the author of the CSV import section of 
QGIS has to say.
Regards,
Zoltan


On 2015/08/04 13:29, Frank Sokolic wrote:
> Hi Zoltan,
>
> I wonder if this is a DBF format restriction. If I remember correctly 
> DBF field names have to start with a letter followed by any 
> combination of letters and numbers up to the maximum field name length.
>
> Frank.
>
> On 04/08/2015 12:26, Zoltan Szecsei wrote:
>> Hi,
>> Using the above version on Win 7 64 bit, I read a CSV file (as
>> attributes only) stipulating that "first record has field names"
>> Record 1 is as follows:
>> "SALnum","SALnam","1","2","3","4","5","6","7","8","9","10+"
>>
>> When I open the attribute table, I see that fields 1 & 2 have names
>> SALnum and SALnam, but the rest are called 'Field_3', 'Field_4' and 
>> so on.
>>
>> When I edit record 1 of this CSV file to look like:
>> "SALnum","SALnam","1p","2p","3p","4p","5p","6p","7p","8p","9p","10+p"
>>
>> The I get the correct field names (albeit 1p instead of just "1")
>>
>> Is this an error, or is there some reason further down the line, that
>> attribute tables cannot have 'numeric' field names?
>>
>> Thanks and regards,
>> Zoltan
>>
>>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 

===========================================
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
GIS and Photogrammetric Services

P.O. Box 7, Muizenberg 7950, South Africa.

Mobile: +27-83-6004028
Fax:    +27-86-6115323     www.geograph.co.za
===========================================



More information about the Qgis-developer mailing list