Re: [gdal-dev] gdal_rasterize with text attributes.

2015-06-27 Thread Mike Toews
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

[gdal-dev] gdal_rasterize with text attributes.

2015-06-26 Thread Ricardo Oliveira
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. -Ricardo