Rasters can only store numeric types, not strings. But you could either rasterize the primary key, or reclassify the strings into a so-called lookup table of ID and string (e.g. 1="green", 2="blue", etc.). And then you could look-up the text from a raster using the common integer ID.
-Mike On 27 June 2015 at 11:06, Ricardo Oliveira <[email protected]> wrote: > Hello everyone, > > I'm trying to do a simple vector to raster conversion using an attribute > field stored as string. Am I wrong or does gdal_rasterize does not accept > text fields as attributes? > > Thanks for any insight. > > Ricardo O. _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
