fields
Returns a list of the names of each of the fields in this layer:
>>> layer.fields ['Name', 'Population', 'Density', 'Created']
Returns a list of the data types of each of the fields in this layer. These are subclasses of Field
, discussed below:
>>> [ft.__name__ for ft in layer.field_types] ['OFTString', 'OFTReal', 'OFTReal', 'OFTDate']
Please login to continue.