girs.feat.layers.LayersSet.get_field_numbers

LayersSet.get_field_numbers(field_names=None, layer_number=0)

Return the field numbers for the given field names. Set field number = -1 if field name does not exist

Parameters:
  • field_names
  • layer_number – default is zero
Returns:

list of int