AnsweredAssumed Answered

PolygonToRaster with string value field in standalone script

Question asked by rjzehnder on Oct 23, 2019
Latest reply on Oct 23, 2019 by rjzehnder

I'm trying to convert a polygon feature class to raster using a standalone python script.  According to ArcGIS help for the tool

If the input field contains string values, the output raster will contain an integer value field and a string field.

This is what happens if I run the tool directly in ArcMap or in a script tool in ArcMap.  When I run it in a standalone script, though, the output raster contains only an integer field (leaving me no way to link back to the fields in the feature class or even know what the values represent).


Anybody know why this is happening or have a good workaround?  I suppose I could add an integer field to the polygon fc to use as the value field and then join to the resulting raster, but I would rather get the expected behavior when using a string field.