be-graphes-map-generator/script/pgsnapshot_schema_0.6_linestring.sql

9 lines
365 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 storing the full linestring of the way.
SELECT AddGeometryColumn('ways', 'linestring', 4326, 'GEOMETRY', 2);
-- Add an index to the bbox column.
CREATE INDEX idx_ways_linestring ON ways USING gist (linestring);
-- Cluster table by geographical location.
CLUSTER ways USING idx_ways_linestring;