Skip to content

Commit 770f4a1

Browse files
committed
Minor cleanup
2 parents b84a5d2 + 706f163 commit 770f4a1

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

flex-config/road.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ tables.road_line = osm2pgsql.define_table({
2727
ids = { type = 'way', id_column = 'osm_id' },
2828
columns = {
2929
{ column = 'osm_type', type = 'text', not_null = true },
30-
{ column = 'major', type = 'boolean', not_null = true},
3130
{ column = 'name', type = 'text' },
3231
{ column = 'ref', type = 'text' },
3332
{ column = 'maxspeed', type = 'int' },
3433
{ column = 'oneway', type = 'direction' },
3534
{ column = 'layer', type = 'int', not_null = true },
3635
{ column = 'tunnel', type = 'text' },
3736
{ column = 'bridge', type = 'text' },
37+
{ column = 'major', type = 'boolean', not_null = true},
3838
{ column = 'route_foot', type = 'boolean' },
3939
{ column = 'route_cycle', type = 'boolean' },
4040
{ column = 'route_motor', type = 'boolean' },

flex-config/road_major.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ tables.road_major = osm2pgsql.define_table({
88
ids = { type = 'way', id_column = 'osm_id' },
99
columns = {
1010
{ column = 'osm_type', type = 'text', not_null = true },
11-
{ column = 'major', type = 'boolean', not_null = true},
1211
{ column = 'name', type = 'text' },
1312
{ column = 'ref', type = 'text' },
1413
{ column = 'maxspeed', type = 'int' },
1514
{ column = 'layer', type = 'int', not_null = true },
1615
{ column = 'tunnel', type = 'text' },
1716
{ column = 'bridge', type = 'text' },
17+
{ column = 'major', type = 'boolean', not_null = true},
1818
{ column = 'geom', type = 'linestring', projection = srid },
1919
}
2020
})

flex-config/run-all.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
require "all_tags"
1+
require "tags"
22
require "run-no-tags"

flex-config/run-all.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
\i all_tags.sql
1+
\i tags.sql
22
\i run-no-tags.sql

flex-config/run-no-tags.lua

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
require "pgosm-meta"
2-
require "road"
2+
require "amenity"
33
require "building"
4-
require "natural"
5-
require "traffic"
6-
require "place"
7-
require "infrastructure"
8-
require "water"
94
require "indoor"
10-
require "shop"
11-
require "amenity"
5+
require "infrastructure"
126
require "landuse"
137
require "leisure"
8+
require "natural"
9+
require "place"
10+
require "road"
11+
require "shop"
12+
require "traffic"
13+
require "water"

flex-config/run-no-tags.sql

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
\i pgosm-meta.sql
2-
\i road.sql
2+
\i amenity.sql
33
\i building.sql
4+
\i indoor.sql
5+
\i infrastructure.sql
6+
\i landuse.sql
7+
\i leisure.sql
48
\i natural.sql
59
\i traffic.sql
610
\i place.sql
7-
\i infrastructure.sql
8-
\i water.sql
9-
\i indoor.sql
11+
\i road.sql
1012
\i shop.sql
11-
\i amenity.sql
12-
\i landuse.sql
13-
\i leisure.sql
13+
\i water.sql

flex-config/unitable.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
COMMENT ON TABLE osm.unitable IS 'ALL OpenStreetMap data in one big table. NOT FOR PRODUCTION USE! Generated by osm2pgsql Flex output using pgosm-flex/flex-config/unitable.lua';
1+
COMMENT ON TABLE osm.unitable IS 'All OpenStreetMap data from the source file in one big table. NOT FOR PRODUCTION USE! Generated by osm2pgsql Flex output using pgosm-flex/flex-config/unitable.lua';
22
COMMENT ON COLUMN osm.tags.tags IS 'Stores unaltered key/value pairs from OpenStreetMap. A few tags are dropped by Lua script though most are preserved.';
33

44
ALTER TABLE osm.unitable

0 commit comments

Comments
 (0)