(filename)
return transects
Reads transect coordinates from a .geojson file.
    
    Arguments:
    -----------
    filename: str
        contains the path and filename of the geojson file to be loaded
        
    Returns:    
    -----------
    transects: dict
        contains the X and Y coordinates of each transect
Reads transect coordinates from a .geojson file.
    
    Arguments:
    -----------
    filename: str
        contains the path and filename of the geojson file to be loaded
        
    Returns:    
    -----------
    transects: dict
        contains the X and Y coordinates of each transect
Reads transect coordinates from a . geojson file . Arguments : ----------- filename : str contains the path and filename of the geojson file to be loaded Returns : ----------- transects : dict contains the X and Y coordinates of each transect
def transects_from_geojson(filename):
    """
    Reads transect coordinates from a .geojson file.
    
    Arguments:
    -----------
    filename: str
        contains the path and filename of the geojson file to be loaded
        
    Returns:    
    -----------
    transects: dict
        contains the X and Y coordinates of each transect
        
    """  
    
    gdf = gpd.read_file(filename)
    transects = dict([])
    for i in gdf.index:
        transects[gdf.loc[i,'name']] = np.array(gdf.loc[i,'geometry'].coords)
        
    print('%d transects have been loaded' % len(transects.keys()))

    return transects
def transects_from_geojson ( filename ) : gdf = gpd . read_file ( filename ) transects = dict ( [ ] ) for i in gdf . index : transects [ gdf . loc [ i , 'name' ] ] = np . array ( gdf . loc [ i , 'geometry' ] . coords ) print ( '%d transects have been loaded' % len ( transects . keys ( ) ) ) return transects