Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I convert an Integer field to a Real field in a shapefile ?

I'm searching a tool, or a way to do that (may be under QGis ?!).


share|improve this question
Point of clarification: shapefiles store their attributes in .dbf files, whose only numerical data type is an ASCII-encoded fixed-width, fixed-precision decimal: they do not directly store true floating point values. (Some software will correctly interpret ASCII decimal points when they appear even in a zero-precision ("integer") field, but it would be unwise to rely on this without extensive testing.) – whuber Jan 25 '13 at 17:00

The field type is static once created. You will need to make a new field in the field calculator with type 'Decimal number (real)' and use the field calculator to copy any existing data from the integer field.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.