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

« back to all changes in this revision

Viewing changes to lib/temporal/SQL/vector_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 vector table to store 
 
3
-- 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 
 
11
 
 
12
CREATE TABLE  vector_metadata (
 
13
  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
 
14
  is_3d BOOLEAN,          -- This is 1 if the vector map is 3d and 0 otherwise 
 
15
  points INTEGER,         -- The number of points
 
16
  lines INTEGER,          -- The number of lines
 
17
  boundaries INTEGER,     -- The number of boundaries
 
18
  centroids INTEGER,      -- The number of centroids
 
19
  faces INTEGER,          -- The number of faces
 
20
  kernels INTEGER,        -- The number of kernels
 
21
  primitives INTEGER,     -- All primitives accumulated (points, lines,boundaries,centroids,faces,kernels)
 
22
  nodes INTEGER,          -- Number of nodes (topological information)
 
23
  areas INTEGER,          -- The number of areas (topological information)
 
24
  islands INTEGER,        -- The number of islands (topological information)
 
25
  holes INTEGER,          -- The number of holes (topological information)
 
26
  volumes INTEGER,        -- The number of volumes (topological information)
 
27
  PRIMARY KEY (id)
 
28
);
 
29
 
 
30
 
 
31