You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are want to add geometry fields to our database in order to be able to run geoqueries using PostGIS.
The task is to create a script that:
Creates a new table, gtfs_shape_lines, with two fields: shape_id (INTEGER NOT NULL) and shape_line (geometry)
Insert data from gtfs_shapes to gtfs_shape_lines. All the records with the same shape_id should in gtfs_shape should be merged into a single record in gtfs_shape_lines. The line data should be a concatenation of the of the shape_pt_lon & shape_pt_lan fields, ordered by shape_pt_sequence.
We are want to add geometry fields to our database in order to be able to run geoqueries using PostGIS.
The task is to create a script that:
shape_id
(INTEGER NOT NULL) and shape_line (geometry)The script location should be under the /postgres folder in the source code. If you need Python code, put the script under /gtfs/parser
Additional pointers:
ALTER TABLE
(see here why)What's would you need to implement this?
The text was updated successfully, but these errors were encountered: