strds_metadata_table.sql 1.7 KB

12345678910111213141516171819202122232425262728
  1. --#############################################################################
  2. -- This SQL script generates the space time raster dataset metadata table.
  3. --
  4. -- Author: Soeren Gebbert soerengebbert <at> googlemail <dot> com
  5. --#############################################################################
  6. CREATE TABLE strds_metadata (
  7. id VARCHAR NOT NULL, -- Id of the space-time dataset, this is the primary key
  8. raster_register VARCHAR, -- The id of the table in which the raster maps are registered for this dataset
  9. number_of_maps INTEGER, -- The number of registered raster maps
  10. max_min DOUBLE PRECISION, -- The minimal maximum of the registered raster maps
  11. min_min DOUBLE PRECISION, -- The minimal minimum of the registered raster maps
  12. max_max DOUBLE PRECISION, -- The maximal maximum of the registered raster maps
  13. min_max DOUBLE PRECISION, -- The maximal minimum of the registered raster maps
  14. nsres_min DOUBLE PRECISION, -- The lowest north-south resolution of the registered raster maps
  15. nsres_max DOUBLE PRECISION, -- The highest north-south resolution of the registered raster maps
  16. ewres_min DOUBLE PRECISION, -- The lowest east-west resolution of the registered raster maps
  17. ewres_max DOUBLE PRECISION, -- The highest east-west resolution of the registered raster maps
  18. aggregation_type VARCHAR, -- The aggregation type of the dataset (mean, min, max, ...) set by aggregation modules
  19. title VARCHAR, -- Title of the space-time raster dataset
  20. description VARCHAR, -- Detailed description of the space-time raster dataset
  21. command VARCHAR, -- The command that was used to create the space time raster dataset
  22. PRIMARY KEY (id)
  23. );