mosaic.formats.open_file#

open_file(filename, *args, **kwargs)[source]#

Open and parse a file based on its extension.

Parameters:
filenamestr

Path to the file to be opened.

*args

Additional positional arguments passed to the parser function.

**kwargs

Additional keyword arguments passed to the parser function.

Returns:
GeometryDataContainer

Parsed geometry data container.

Raises:
ValueError

If the file extension is not supported.