be-graphes-map-generator/script/pgsimple_schema_0.6_bbox.sql

6 lines
332 B
MySQL
Raw Normal View History

2018-02-24 21:43:28 +00:00
-- Add a postgis GEOMETRY column to the way table for the purpose of indexing the location of the way.
-- This will contain a bounding box surrounding the extremities of the way.
SELECT AddGeometryColumn('ways', 'bbox', 4326, 'GEOMETRY', 2);
-- Add an index to the bbox column.
CREATE INDEX idx_ways_bbox ON ways USING gist (bbox);