[Qgis-user] Shapefiles with all numeric attribute names don't classify right?

Philip Pierdomenico ppierdo at gmail.com
Tue May 10 11:02:35 PDT 2016


Agreed, don't start field names with numbers.

(from ESRI, but I think should apply equally to shapefiles used in QGIS):
http://support.esri.com/cn/knowledgebase/techarticles/detail/23087


Phil


On Tue, May 10, 2016 at 1:55 PM, Anita Graser <anitagraser at gmx.at> wrote:

> ​Hi Ian,
> If I remember correctly, Shapefile attribute names must not start with a
> number. Im not sure why this is but I think that could be part of the issue.
> Best wishes,
> Anita​
>
> On Tue, May 10, 2016 at 3:26 PM, Ian Turton <ijturton at gmail.com> wrote:
>
>> I have a shapefile with a bunch of attributes called 1980,1990,2000, etc
>> to represent the years the data is for. They are integers (if that matters)
>> but when I try to use them in a Qgis (2.14.2-Essen) the styler recognises
>> them as numeric but when I try to produce a graduated style all the classes
>> are  set to -2147483648 - -2147483648. If I rename the attribute to
>> 1980_inc or inc1980 the classifier is happy and everything works as I
>> expect.
>>
>> Does anyone know what might be going on?
>>
>> Ian
>>
>> --
>> Ian Turton
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160510/f1efbac4/attachment.html>


More information about the Qgis-user mailing list