GeoPandas supports writing and reading the Apache Parquet and Feather file formats.
GeoPandas 支持写入和读取 Apache Parquet 和 Feather 文件格式。
Apache Parquet is an efficient, columnar storage format (originating from the Hadoop ecosystem). It is a widely used binary file format for tabular data. The Feather file format is the on-disk representation of the Apache Arrow memory format, an open standard for in-memory columnar data.
Apache Parquet 是一种高效的列式存储格式(源自 Hadoop 生态系统)。它是一种广泛用于表格数据的二进制文件格式。 Feather 文件格式是 Apache Arrow 内存格式的磁盘表示形式,这是内存中柱状数据的开放标准。
The geopandas.read_parquet()
, geopandas.read_feather()
, GeoDataFrame.to_parquet()
and GeoDataFrame.to_feather()
methods enable fast roundtrip from GeoPandas to those binary file formats, preserving the spatial information.
geopandas.read_parquet()、geopandas.read_feather()、GeoDataFrame.to_parquet() 和 GeoDataFrame.to_feather() 方法支持从 GeoPandas 到这些二进制文件格式的快速往返,同时保留空间信息。
Warning:
This is an initial implementation of Parquet file support and associated metadata. This is tracking version 0.1.0 of the metadata specification at: geopandas/geo-arrow-spec
这是 Parquet 文件支持和相关元数据的初始实现。
This metadata specification does not yet make stability promises. As such, we do not yet recommend using this in a production setting unless you are able to rewrite your Parquet or Feather files.
此元数据规范尚未做出稳定性承诺。因此,我们不建议在生产环境中使用它,除非您能够重写您的 Parquet 或 Feather 文件。