2

I have a .shp-file of some buildings with a sheet in an attribute table of their height. I want to extrude them using a Qgis2threejs plugin, but since a sheet of height is shown as a type of QString, the plugin can't recognize it and the buildings can't be extruded.

I have tried to export a database as a .csv-file, but the Excel is locked and it can't be modified.

Any alternative approaches?

Taras
  • 32,823
  • 4
  • 66
  • 137
Antonije
  • 31
  • 3

1 Answers1

2

If the heights are in a column of the attributes table, but stored as QString type, you can convert them in a new numeric type column.

  • Add a new field with the Decimal number (real) type and the desired length and precision in the attribute table.

  • Populate that field in the Field Calculator with the expression:

to_real("height")

Where "height" is the name of the string type field.

Gabriel De Luca
  • 14,289
  • 3
  • 20
  • 51