From ea068025d0ad33729fbc43448470f2de2eafb22e Mon Sep 17 00:00:00 2001 From: laidig Date: Wed, 21 May 2014 21:03:30 -0400 Subject: [PATCH] Update gtfs_tables_makespatial.sql Fix for latest postgis. Some explanation here: http://gis.stackexchange.com/questions/57065/osm2pgsql-error-operator-class-gist-geometry-ops-does-not-exist-for-access-me --- src/gtfs_tables_makespatial.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gtfs_tables_makespatial.sql b/src/gtfs_tables_makespatial.sql index 8e701f0..1422c28 100644 --- a/src/gtfs_tables_makespatial.sql +++ b/src/gtfs_tables_makespatial.sql @@ -11,7 +11,7 @@ SELECT AddGeometryColumn('gtfs_stops', 'the_geom', 4326, 'POINT', 2); UPDATE gtfs_stops SET the_geom = ST_SetSRID(ST_MakePoint(stop_lon, stop_lat), 4326); -- Create spatial index -CREATE INDEX "gtfs_stops_the_geom_gist" ON "gtfs_stops" using gist ("the_geom" gist_geometry_ops); +CREATE INDEX "gtfs_stops_the_geom_gist" ON "gtfs_stops" using gist ("the_geom"); -- Create new table to store the shape geometries CREATE TABLE gtfs_shape_geoms ( @@ -32,6 +32,6 @@ SELECT shape.shape_id, ST_SetSRID(ST_MakeLine(shape.the_geom), 4326) As new_geom GROUP BY shape.shape_id; -- Create spatial index -CREATE INDEX "gtfs_shape_geoms_the_geom_gist" ON "gtfs_shape_geoms" using gist ("the_geom" gist_geometry_ops); +CREATE INDEX "gtfs_shape_geoms_the_geom_gist" ON "gtfs_shape_geoms" using gist ("the_geom"); -COMMIT; \ No newline at end of file +COMMIT;