mss_dataserver.postprocess.util.save_supplement

mss_dataserver.postprocess.util.save_supplement(public_id, df, output_dir, category, name, props=None)[source]

Save a geopandas dataframe to geojson file.

Parameters
  • public_id (str) – The public id of the event.

  • df (geopandas.GeoDataFrame) – The data to save.

  • output_dir (str) – The directory where to save the geojson file.

  • category (str) – The supplement data category.

  • name (str) – The supplement data name.

  • props (dict) – Additional properties written to the feature collection properties.