[GRASS-user] Generating categorical int values from a string attribute for use with v.to.rast

Helmut Kudrnovsky hellik at web.de
Thu Nov 15 22:30:14 PST 2018


>Thank you for your reply. There are many potential categories and
>thousands of polygons, do you have insight on how to assign int values
>on-the-fly using v.db.update? Hard coding all potential values would be
>cumbersome in this application. :)

have you read the manual?:

https://grass.osgeo.org/grass76/manuals/v.db.update.html

where=sql_query
    WHERE conditions of SQL statement without

looping through your categories in sm_soil_se by a where clause and
v.db.update the sm_soil_se_int column accordingly?



-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html


More information about the grass-user mailing list