Skip to content

Commit 27b6789

Browse files
committed
Disable legacy route handling by default in compatible.lua
The specialized route handling is probably not needed any more by anybody, so we'll disable it by default.
1 parent 7a180ff commit 27b6789

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

flex-config/compatible.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ local hstore_match_only = true
3232
-- be set through option -z|--hstore-column.
3333
local hstore_column = nil
3434

35+
-- There is some very old specialized handling of route relations in osm2pgsql,
36+
-- which you probably don't need. This is disabled here, but you can enable
37+
-- it by setting this to true. If you don't understand this, leave it alone.
38+
local enable_legacy_route_processing = false
39+
3540
-- ---------------------------------------------------------------------------
3641

3742
if hstore and hstore_all then
@@ -646,7 +651,7 @@ function osm2pgsql.process_relation(object)
646651
return
647652
end
648653

649-
if (hstore or hstore_all) and type == 'route' then
654+
if enable_legacy_route_processing and (hstore or hstore_all) and type == 'route' then
650655
if not object.tags.route_name then
651656
output_hstore.route_name = object.tags.name
652657
end

0 commit comments

Comments
 (0)