raster_tools.Vector.cast_field#

Vector.cast_field(name, dtype)[source]#

Cast a field to the specified dtype.

Parameters
  • name (str) – The field name to cast.

  • dtype (str, type, or numpy.dtype) – The dtype to cast to.

Returns

A new vector with the updated attribute table.

Return type

Vector