transbigdata.grid_to_polygon

transbigdata.grid_to_polygon(gridid, params)

Generate the geometry column based on the grid ID. The input is the grid ID, the output is the geometry. Support rectangle, triangle and hexagon grids

Parameters:
  • gridid (list) –

    if Rectangle grids [LONCOL,LATCOL] : Series

    The two columns LONCOL and LATCOL together can specify a grid.

    if Triangle and Hexagon grids [loncol_1,loncol_2,loncol_3] : Series

    The index of the grid latitude. The two columns LONCOL and LATCOL together can specify a grid.

  • params (list or dict) – Gridding parameters. See https://transbigdata.readthedocs.io/en/latest/grids.html for detail information about gridding parameters.

Returns:

geometry – The column of grid geographic polygon

Return type:

Series