geosolutions-it / clevmetro-nfd

Cleveland Metroparks - Natural Features Database
https://waffle.io/geosolutions-it/clevmetro-nfd
BSD 2-Clause "Simplified" License
2 stars 5 forks source link

Summary report API #234

Open giohappy opened 6 years ago

giohappy commented 6 years ago

The reports API should acccept a set of parameters to generate reports with dynamic configuration.

The API should accept a set of parameters to define

  1. the elements to be included (rows in the report table):
  1. the field (columns of the report table):
    • DB ID
    • Genus
    • Species
    • Common name
    • Natural Area Description (if natural area is chosen instead of taxonomic rank)
    • Observation Date
    • Observer name
    • Site description
    • Reservation
    • Watershed
    • Global Status (G-Rank)
    • Federal Status (N-Rank??)
    • State Status (S-Rank)
    • CM Status (CM-Rank)
    • Latitude
    • Longitude
    • Count (in case of repeated rows we just set the count. 1 in case of single row)

Output example:

image

ricardogsilva commented 6 years ago

While implementing this I've stumbled upon the Location.reservation and Location.watershed attributes, which we currently allow to have multiple values. IMHO it seems strange that a single occurrence would be located in multiple reservations and watersheds. Perhaps we should ask the client if this is correct?

giohappy commented 6 years ago

Probably you're right but I would leave it as it is. AFAIU, In some circustances, an occurence can comprise multiple obervations.