damn_server.area.save

damn_server.area.save(area, author)

Save the area to the database and return the area identifier.

Parameters:
  • area (CreateArea) – Area to save, containing necessary information.

  • author (ConstrainedStrValue) – The author of the new area.

Save the area to the current_areas table in the database. Also, based on the area’s FeatureCollection, create the squares and the corresponding commits in the current_squares and the current_commits table respectivelly.