forked from OpenTransitTools/gtfsdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
drop index if EXISTS gtfs_shapes_geom_gem; | ||
drop index if EXISTS gtfs_shapes_gem; | ||
drop index if EXISTS gtfs_stops_gem; | ||
|
||
ANALYZE; | ||
|
||
alter table gtfs_shapes ALTER COLUMN the_geom type geometry(Point, 4326) using ST_Transform(ST_SetSRID(the_geom,900913),4326); | ||
alter table gtfs_stops ALTER COLUMN the_geom type geometry(Point, 4326) using ST_Transform(ST_SetSRID(the_geom,900913),4326); | ||
alter table gtfs_shape_geoms ALTER COLUMN the_geom type geometry(LineString, 4326) using ST_Transform(ST_SetSRID(the_geom,900913),4326); | ||
|
||
create index gtfs_shapes_geom_gem on gtfs_shape_geoms using GIST (the_geom); | ||
create index gtfs_shapes_gem on gtfs_shapes using GIST (the_geom); | ||
create index gtfs_stops_gem on gtfs_stops using GIST (the_geom); | ||
|
||
ANALYZE; |
File renamed without changes.