Advertisement
miki725

gis table create

Dec 23rd, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. -- Table: sample_gis
  2.  
  3. -- DROP TABLE sample_gis;
  4.  
  5. CREATE TABLE sample_gis
  6. (
  7. id serial NOT NULL,
  8. "time" timestamp with time zone,
  9. variable character varying(64) NOT NULL,
  10. value double precision NOT NULL,
  11. geom geometry(Geometry,4326) NOT NULL,
  12. CONSTRAINT sample_gis_pkey PRIMARY KEY (id)
  13. )
  14. WITH (
  15. OIDS=FALSE
  16. );
  17. ALTER TABLE sample_gis
  18. OWNER TO vizmill;
  19.  
  20. -- Index: sample_gis_geom_id
  21.  
  22. -- DROP INDEX sample_gis_geom_id;
  23.  
  24. CREATE INDEX sample_gis_geom_id
  25. ON sample_gis
  26. USING gist
  27. (geom);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement