girs.feat.layers.get_field_definitions_from_data_frame

get_field_definitions_from_data_frame(df)

Return a list of field definitions to the DataFrame columns.

Return one instance of FieldDefinition for each column. For the geometry column, return a FieldDefinition with name ‘DataFrameFeature.geometry_fieldname’ and oft_type ogr.OFTString

Parameters:df – data frame with a geometry column
Returns:list of field definitions