|
| 1 | +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'; |
| 2 | +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'; |
| 3 | +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'; |
| 4 | + |
| 5 | + |
| 6 | +ALTER TABLE osm.public_transport_point |
| 7 | + ADD CONSTRAINT pk_osm_public_transport_point_osm_id |
| 8 | + PRIMARY KEY (osm_id) |
| 9 | +; |
| 10 | +ALTER TABLE osm.public_transport_line |
| 11 | + ADD CONSTRAINT pk_osm_public_transport_line_osm_id |
| 12 | + PRIMARY KEY (osm_id) |
| 13 | +; |
| 14 | +ALTER TABLE osm.public_transport_polygon |
| 15 | + ADD CONSTRAINT pk_osm_public_transport_polygon_osm_id |
| 16 | + PRIMARY KEY (osm_id) |
| 17 | +; |
| 18 | + |
| 19 | + |
| 20 | +CREATE INDEX ix_osm_public_transport_point_type ON osm.public_transport_point (osm_type); |
| 21 | +CREATE INDEX ix_osm_public_transport_line_type ON osm.public_transport_line (osm_type); |
| 22 | +CREATE INDEX ix_osm_public_transport_polygon_type ON osm.public_transport_polygon (osm_type); |
| 23 | + |
| 24 | + |
| 25 | +COMMENT ON COLUMN osm.public_transport_point.osm_id IS 'OpenStreetMap ID. Unique along with geometry type.'; |
| 26 | +COMMENT ON COLUMN osm.public_transport_line.osm_id IS 'OpenStreetMap ID. Unique along with geometry type.'; |
| 27 | +COMMENT ON COLUMN osm.public_transport_polygon.osm_id IS 'OpenStreetMap ID. Unique along with geometry type.'; |
| 28 | + |
| 29 | +COMMENT ON COLUMN osm.public_transport_point.geom IS 'Geometry loaded by osm2pgsql.'; |
| 30 | +COMMENT ON COLUMN osm.public_transport_line.geom IS 'Geometry loaded by osm2pgsql.'; |
| 31 | +COMMENT ON COLUMN osm.public_transport_polygon.geom IS 'Geometry loaded by osm2pgsql.'; |
| 32 | + |
| 33 | +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'; |
| 34 | +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'; |
| 35 | +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'; |
| 36 | + |
| 37 | +COMMENT ON COLUMN osm.public_transport_point.osm_subtype IS 'Value describing osm_type key, e.g. osm_type = "highway", osm_subtype = "bus_stop".'; |
| 38 | +COMMENT ON COLUMN osm.public_transport_line.osm_subtype IS 'Value describing osm_type key, e.g. osm_type = "highway", osm_subtype = "bus_stop".'; |
| 39 | +COMMENT ON COLUMN osm.public_transport_polygon.osm_subtype IS 'Value describing osm_type key, e.g. osm_type = "highway", osm_subtype = "bus_stop".'; |
| 40 | + |
| 41 | +COMMENT ON COLUMN osm.public_transport_point.public_transport IS 'Value from public_transport key.'; |
| 42 | +COMMENT ON COLUMN osm.public_transport_line.public_transport IS 'Value from public_transport key.'; |
| 43 | +COMMENT ON COLUMN osm.public_transport_polygon.public_transport IS 'Value from public_transport key.'; |
| 44 | + |
| 45 | +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'; |
| 46 | +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'; |
| 47 | +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'; |
| 48 | + |
0 commit comments