~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to lib/temporal/SQL/raster_metadata_table.sql

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--#############################################################################
 
2
-- This SQL script generates the raster 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
 
 
8
--PRAGMA foreign_keys = ON;
 
9
 
 
10
-- The metadata table reflects most of the raster metadata available in grass
 
11
 
 
12
CREATE TABLE  raster_metadata (
 
13
  id VARCHAR NOT NULL,               -- The id (PFK) is the unique identifier for all tables, it is based on name and mapset (name@mapset) and is used as primary key
 
14
  datatype VARCHAR NOT NULL,
 
15
  cols INTEGER NOT NULL,
 
16
  rows INTEGER NOT NULL,
 
17
  number_of_cells INTEGER NOT NULL,
 
18
  nsres DOUBLE PRECISION NOT NULL,
 
19
  ewres DOUBLE PRECISION NOT NULL,
 
20
  min DOUBLE PRECISION,
 
21
  max DOUBLE PRECISION,
 
22
  PRIMARY KEY (id)
 
23
);
 
24
 
 
25