SpatialData.
write_to_file
Write spatial data into a file.
The extension prescribes the output format.
file_name (Union[str, Path]) – Name of the file
Union
str
Path