spatialpandas icon indicating copy to clipboard operation
spatialpandas copied to clipboard

Support datashader.spatial.points.to_parquet with pyarrow

Open jonmmease opened this issue 6 years ago • 0 comments

PR https://github.com/pyviz/datashader/pull/702 introduced support for spatially indexing Dask dataframes and writing them out as parquet files with custom spatial metadata using the datashader.spatial.points.to_parquet.

To accomplish this, the parquet file is initially written out using dask's dask.dataframe.io.to_parquet function. Then the parquet file is opened with fastparquet directly. The parquet metadata is retrieved using fastparquet, the spatial metadata is added, and then the updated metadata is written back to the file.

In order to support the creation of spatially partitioned parquet files using pyarrow (rather than fastparquet), we would need to work out an similar approach to adding properties to the parquet metadata using the pyarrow parquet API.

jonmmease avatar Feb 15 '19 01:02 jonmmease