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

Michael.Dodd michael.dodd at open.ac.uk
Wed Feb 11 08:25:49 PST 2015


OK, thanks for the help it worked as you suggested.
________________________________________
From: Richard Duivenvoorde [rdmailings at duif.net]
Sent: Wednesday, February 11, 2015 4:10 PM
To: Michael.Dodd; 'qgis-user at lists.osgeo.org'
Subject: Re: [Qgis-user] is it possible to change field type

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

-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.



More information about the Qgis-user mailing list