Example #1
0
def _layer_reader(df_reader: DataFrameReader, format_key: str,
                  path: Optional[str], **options: str) -> RasterFrameLayer:
    """ Loads the file of the given type at the given path."""
    df = df_reader.format(format_key).load(path, **options)
    return _convert_df(df)
Example #2
0
def _aliased_reader(df_reader: DataFrameReader, format_key: str,
                    path: Optional[str], **options: str) -> DataFrame:
    """ Loads the file of the given type at the given path."""
    return df_reader.format(format_key).load(path, **options)