(transects)
return gdf_all
Saves the shore-normal transects as a gpd.GeoDataFrame    
    
    KV WRL 2018

    Arguments:
    -----------
    transects: dict
        contains the coordinates of the transects          
                
    Returns:    
    -----------
    gdf_all: gpd.GeoDataFrame
Saves the shore-normal transects as a gpd.GeoDataFrame    
    
    KV WRL 2018
Saves the shore - normal transects as a gpd . GeoDataFrame KV WRL 2018
def transects_to_gdf(transects):
    """
    Saves the shore-normal transects as a gpd.GeoDataFrame    
    
    KV WRL 2018

    Arguments:
    -----------
    transects: dict
        contains the coordinates of the transects          
                
    Returns:    
    -----------
    gdf_all: gpd.GeoDataFrame

        
    """  
       
    # loop through the mapped shorelines
    for i,key in enumerate(list(transects.keys())):
        # save the geometry + attributes
        geom = geometry.LineString(transects[key])
        gdf = gpd.GeoDataFrame(geometry=gpd.GeoSeries(geom))
        gdf.index = [i]
        gdf.loc[i,'name'] = key
        # store into geodataframe
        if i == 0:
            gdf_all = gdf
        else:
            gdf_all = gdf_all.append(gdf)
            
    return gdf_all
def transects_to_gdf ( transects ) : # loop through the mapped shorelines for i , key in enumerate ( list ( transects . keys ( ) ) ) : # save the geometry + attributes geom = geometry . LineString ( transects [ key ] ) gdf = gpd . GeoDataFrame ( geometry = gpd . GeoSeries ( geom ) ) gdf . index = [ i ] gdf . loc [ i , 'name' ] = key # store into geodataframe if i == 0 : gdf_all = gdf else : gdf_all = gdf_all . append ( gdf ) return gdf_all