list_layers
Parameters
Path to one GeoPackage (
.gpkg) file, including Hadoop-supported
paths such as s3a://bucket/data.gpkg. Bytes and file-like objects
are not supported. A glob must resolve to exactly one file.Returns
Columns
name and geometry_type, sorted by name. Registered
nonspatial tables, including legacy aspatial tables, have None
as their geometry type. Raster tile tables are excluded.Unlike GeoPandas, this currently supports GeoPackage only. It uses
Sedona’s Spark reader, not Pyogrio. Only layer metadata is collected to
the driver; no feature geometries are read. The reader copies remote
GeoPackages in full to executor-local temporary storage, so remote
I/O and temporary disk space scale with the file size.Types describe declared metadata, including empty layers. Concrete
types permitting Z use a
Z suffix; M is not represented, matching
GeoPandas with Pyogrio.
Generic geometry layers report Unknown. Only core GeoPackage
geometry types are supported.Examples
points_from_xy
geopandas.points_from_xy, which returns an in-memory
GeometryArray, this scalable counterpart returns a distributed
GeoSeries so that its index and CRS metadata can be retained.
Parameters
Coordinate values. Distributed Series must come from the same frame;
numeric scalar coordinates are broadcast over that frame.
Coordinate values. Distributed Series must come from the same frame;
numeric scalar coordinates are broadcast over that frame.
Coordinate values. Distributed Series must come from the same frame;
numeric scalar coordinates are broadcast over that frame.
Returns
Distributed Point geometries. Shared distributed indexes, including
MultiIndexes and duplicate labels, are preserved.
Construction uses native
ST_Point or ST_PointZ expressions. It
does not collect pandas-on-Spark inputs or execute a Python row UDF.Local coordinates use NumPy broadcasting and are paired positionally, as
in GeoPandas. Local iterables, NumPy arrays, and pandas objects are
materialized on the driver and are intended for bounded inputs. Use
pandas-on-Spark Series for large coordinate columns.Distributed Series are paired within their shared Spark plan and retain
that plan’s index. Series from unrelated plans are rejected because they
have no safe distributed positional relationship.Examples
read_feather
columns parameter.
However, the structure of the returned GeoDataFrame will depend on which
columns you read:
- if no geometry columns are read, this will raise a
ValueError- you should use the pandasread_feathermethod instead. - if the primary geometry column saved to this file is not included in columns, the first available geometry column will be set as the geometry column of the returned GeoDataFrame.
GeoDataFrame.to_feather.
Requires ‘pyarrow’ >= 0.17.
Parameters
String, path object (implementing os.PathLike[str]) or file-like object
implementing a binary read() function. The path is read on the driver,
so it must be accessible from the driver.
If not None, only these columns will be read from the file. If
the primary geometry column is not included, the first secondary
geometry read from the file will be set as the geometry column
of the returned GeoDataFrame. If no geometry columns are present,
a
ValueError will be raised.Arguments passed to the
pa.Table.to_pandas method for non-geometry
columns. Requires a GeoPandas version whose read_feather accepts it.Returns
See alsoGeoDataFrame.to_feather: write GeoDataFrame to Featherread_parquet: read GeoParquet with Spark’s distributed reader
Examples
read_file
GeoDataFrame from a file.
Parameters
File path or file handle to read from. If the path is a directory,
Sedona will read all files in the directory into a dataframe.
The format of the file to read. If None, Sedona will infer the format
from the file extension. Note, inferring the format from the file extension
is not supported for directories.
Options:
- “shapefile”
- “geojson”
- “geopackage”
- “geoparquet”
Reader options. Only
table_name is used: the name of the table to
read, required when format is “geopackage”. Sedona warns about any
other keyword argument, since other GeoPandas reader options are not
supported.GeoDataFrame.to_file: write GeoDataFrame to file
read_parquet
- if no geometry columns are read, this will raise a
ValueError- you should use the pandasread_parquetmethod instead.

