Skip to main content

get_chunk_from_table

get_chunk_from_table(
url: str,
file_id: Union[str, int, None],
chunk_id: Optional[int],
*,
columns: Optional[Iterable[str]] = None
) -> gpd.GeoDataFrame

Returns a chunk from a table and chunk coordinates.

This can be called with file_id and chunk_id from get_chunks_metadata.

Parameters

  • url (str) – URL of the table.
  • file_id (Union[str, int, None]) – File ID to read.
  • chunk_id (Optional[int]) – Chunk ID to read.
  • columns (Optional[Iterable[str]]) – Read only the specified columns.

Returns

gpd.GeoDataFrame – The chunk data as a GeoDataFrame.