2

Is it possible to change the data type and attributions of data in QGIS? Almost all of the variables which contains numbers should be changed in all of my vectors. In ArcGIS the data type is recognised as the right one...

I tried all of the options in the options of the layers, but couldn't find any solution...

1
  • Had the same issue. The easiert way is to create new column and cut and paste it to there. – kwoxer Mar 26 '15 at 15:39
7

No, you need to create a new column with the right datatype and parse the data from the old column to the new column (guess your using shape files). A new column can be made with the table manager and the update with the field calculator.

1
  • yo, shape files.... Thanks for the really quick answer! – KriKox Mar 25 '15 at 15:38
0

Creating a new column works. I would like to have a go at getting it in a python script to automate this for me though. Any thoughts on where to start?

3
  • 1
    You should ask this in a new question as it will attract more attention than posting a question in an answer to a question that's already been answered. – Techie_Gus Mar 3 '17 at 10:30
  • Have a look at Table Manager. github.com/borysiasty/tablemanager it essentially does this for renaming columns. – HeikkiVesanto Mar 3 '17 at 11:41
  • See Processing -> QGIS geoalgorithms -> Vector table tools -> Refactor Fields. – Germán Carrillo Mar 24 '17 at 15:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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