[QGIS-Developer] Factorizing a dbf

Paolo Cavallini cavallini at faunalia.it
Mon Jan 22 03:18:48 PST 2018


Hi all,
I have a large shp with a number of repeated strings, and I'd like to
refactor it replacing strings with a numeric code. I have found a
Processing alg that does it, creating a new file each time, which is
cumbersome; moreover, the alg apparently changes field type, adding
decimals to reals. Of course I could create a CASE statement, but this
is also cumbersome.
Is there a more straightforward way?
Thanks.
-- 
Paolo Cavallini - www.faunalia.eu
QGIS & PostGIS courses: http://www.faunalia.eu/training.html
https://www.google.com/trends/explore?date=all&geo=IT&q=qgis,arcgis


More information about the QGIS-Developer mailing list