polartoolkit.shapes_to_df

Contents

polartoolkit.shapes_to_df#

shapes_to_df(shapes, hemisphere=None, epsg=None)[source]#

convert the output of ptk.draw_region and ptk.draw_lines to a dataframe of easting and northing points

Parameters:
  • shapes (list) – list of vertices

  • hemisphere (str, optional,) – set projection based on β€œnorth” or β€œsouth” hemispheres, by default None

  • epsg (str | None, optional) – set projection from EPSG code string (β€œ3031”), by default None

Returns:

Dataframe with easting, northing, and shape_num.

Return type:

pandas.DataFrame