mss_dataserver.postprocess.util.write_geojson_file

mss_dataserver.postprocess.util.write_geojson_file(geojson_instance, category, name, output_dir, prefix=None, postfix=None)[source]

Write a geojson data file.

Parameters
  • geojson_instance – The geojson data.

  • category (str) – The supplement data category.

  • name (str) – The supplement data name.

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

  • prefix (str) – The filename prefix.

  • postfix (str) – The filename postfix.

Returns

The filepath of the saved file.

Return type

str