[Qgis-user] is it possible to change field type

Richard Duivenvoorde rdmailings at duif.net
Wed Feb 11 08:10:33 PST 2015


On 11-02-15 16:49, Michael.Dodd wrote:
> When creating polygons I suddenly realised that I need to change the
> field type from integer to text, however this does not seem possible in
> layer properties and the help does not mention this.  Is there some
> other way of changing the type or is it fixed once you have started
> entering data?

Thinking you are talking about shape file here...

The 'definition' of which type every column has is IN the shape file, so
you cannot change that anymore to my knowledge.

Best is to use the field calculator, to create a new text column based
on the values of your integer column, and then throw away your int column.

http://docs.qgis.org/2.6/en/docs/user_manual/working_with_vector/field_calculator.html

Regards,

Richard




More information about the Qgis-user mailing list