-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from rustprooflabs/public_transit
Public transport
- Loading branch information
Showing
9 changed files
with
386 additions
and
4 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
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,48 @@ | ||
COMMENT ON TABLE osm.public_transport_point IS 'OpenStreetMap public transport points - all points with a public_transport tag. Generated by osm2pgsql Flex output using pgosm-flex/flex-config/public_transport.lua'; | ||
COMMENT ON TABLE osm.public_transport_line IS 'OpenStreetMap public transport lines - all lines with a public_transport tag. Generated by osm2pgsql Flex output using pgosm-flex/flex-config/public_transport.lua'; | ||
COMMENT ON TABLE osm.public_transport_polygon IS 'OpenStreetMap public transport polygons - all polygons with a public_transport tag. Generated by osm2pgsql Flex output using pgosm-flex/flex-config/public_transport.lua'; | ||
|
||
|
||
ALTER TABLE osm.public_transport_point | ||
ADD CONSTRAINT pk_osm_public_transport_point_osm_id | ||
PRIMARY KEY (osm_id) | ||
; | ||
ALTER TABLE osm.public_transport_line | ||
ADD CONSTRAINT pk_osm_public_transport_line_osm_id | ||
PRIMARY KEY (osm_id) | ||
; | ||
ALTER TABLE osm.public_transport_polygon | ||
ADD CONSTRAINT pk_osm_public_transport_polygon_osm_id | ||
PRIMARY KEY (osm_id) | ||
; | ||
|
||
|
||
CREATE INDEX ix_osm_public_transport_point_type ON osm.public_transport_point (osm_type); | ||
CREATE INDEX ix_osm_public_transport_line_type ON osm.public_transport_line (osm_type); | ||
CREATE INDEX ix_osm_public_transport_polygon_type ON osm.public_transport_polygon (osm_type); | ||
|
||
|
||
COMMENT ON COLUMN osm.public_transport_point.osm_id IS 'OpenStreetMap ID. Unique along with geometry type.'; | ||
COMMENT ON COLUMN osm.public_transport_line.osm_id IS 'OpenStreetMap ID. Unique along with geometry type.'; | ||
COMMENT ON COLUMN osm.public_transport_polygon.osm_id IS 'OpenStreetMap ID. Unique along with geometry type.'; | ||
|
||
COMMENT ON COLUMN osm.public_transport_point.geom IS 'Geometry loaded by osm2pgsql.'; | ||
COMMENT ON COLUMN osm.public_transport_line.geom IS 'Geometry loaded by osm2pgsql.'; | ||
COMMENT ON COLUMN osm.public_transport_polygon.geom IS 'Geometry loaded by osm2pgsql.'; | ||
|
||
COMMENT ON COLUMN osm.public_transport_point.osm_type IS 'Key indicating type of public transport feature if detail exists, falls back to public_transport tag. e.g. highway, bus, train, etc'; | ||
COMMENT ON COLUMN osm.public_transport_line.osm_type IS 'Key indicating type of public transport feature if detail exists, falls back to public_transport tag. e.g. highway, bus, train, etc'; | ||
COMMENT ON COLUMN osm.public_transport_polygon.osm_type IS 'Key indicating type of public transport feature if detail exists, falls back to public_transport tag. e.g. highway, bus, train, etc'; | ||
|
||
COMMENT ON COLUMN osm.public_transport_point.osm_subtype IS 'Value describing osm_type key, e.g. osm_type = "highway", osm_subtype = "bus_stop".'; | ||
COMMENT ON COLUMN osm.public_transport_line.osm_subtype IS 'Value describing osm_type key, e.g. osm_type = "highway", osm_subtype = "bus_stop".'; | ||
COMMENT ON COLUMN osm.public_transport_polygon.osm_subtype IS 'Value describing osm_type key, e.g. osm_type = "highway", osm_subtype = "bus_stop".'; | ||
|
||
COMMENT ON COLUMN osm.public_transport_point.public_transport IS 'Value from public_transport key.'; | ||
COMMENT ON COLUMN osm.public_transport_line.public_transport IS 'Value from public_transport key.'; | ||
COMMENT ON COLUMN osm.public_transport_polygon.public_transport IS 'Value from public_transport key.'; | ||
|
||
COMMENT ON COLUMN osm.public_transport_point.wheelchair IS 'Indicates if feature is wheelchair accessible. Expected values: yes, no, limited. Per https://wiki.openstreetmap.org/wiki/Key:wheelchair'; | ||
COMMENT ON COLUMN osm.public_transport_line.wheelchair IS 'Indicates if feature is wheelchair accessible. Expected values: yes, no, limited. Per https://wiki.openstreetmap.org/wiki/Key:wheelchair'; | ||
COMMENT ON COLUMN osm.public_transport_polygon.wheelchair IS 'Indicates if feature is wheelchair accessible. Expected values: yes, no, limited. Per https://wiki.openstreetmap.org/wiki/Key:wheelchair'; | ||
|
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
Oops, something went wrong.