Skip to main content
Alternate constructor to create a GeoSeries from a file.

Signature

Parameters

str
required
File path or file handle to read from. If the path is a directory, Sedona will read all files in that directory.
Union[str, None]
default:"None"
The format of the file to read, by default None. If None, Sedona infers the format from the file extension. Note that format inference is not supported for directories. Available formats are “shapefile”, “geojson”, “geopackage”, and “geoparquet”.
str
The name of the table to read from a GeoPackage file, by default None. This is required if format is “geopackage”.
Keyword arguments passed to sedona.spark.geopandas.read_file, such as table_name.
See also
  • GeoDataFrame.to_file: Write a GeoDataFrame to a file.