Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 ?!).

Regards

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.