raster3d_metadata_table.sql 960 B

1234567891011121314151617181920212223242526272829
  1. --#############################################################################
  2. -- This SQL script generates the raster3d metadata table to store
  3. -- and metadata for SQL queries and temporal GIS support.
  4. --
  5. -- Author: Soeren Gebbert soerengebbert <at> googlemail <dot> com
  6. --#############################################################################
  7. -- The metadata table reflects most of the raster3d metadata available in grass
  8. CREATE TABLE raster3d_metadata (
  9. id VARCHAR NOT NULL, -- The id (PK) is the unique identifier for all tables, it is based on name and mapset (name@mapset) and is used as primary key
  10. datatype VARCHAR NOT NULL,
  11. cols INTEGER NOT NULL,
  12. rows INTEGER NOT NULL,
  13. depths INTEGER NOT NULL,
  14. number_of_cells INTEGER NOT NULL,
  15. nsres DOUBLE PRECISION NOT NULL,
  16. ewres DOUBLE PRECISION NOT NULL,
  17. tbres DOUBLE PRECISION NOT NULL,
  18. min DOUBLE PRECISION,
  19. max DOUBLE PRECISION,
  20. PRIMARY KEY (id)
  21. );