Use boundary type (not relation type) in bbox example and test it

HEAD
Jochen Topf 2022-05-02 15:24:41 +02:00
parent 63a5e32c31
commit 5aac86372a
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ function osm2pgsql.process_relation(object)
-- Store boundary relations as multilinestrings
if relation_type == 'boundary' then
tables.boundaries:add_row({
type = relation_type,
type = object.tags.boundary,
bbox = format_bbox(object),
tags = object.tags,
geom = { create = 'line' }

View File

@ -101,7 +101,7 @@ if (WITH_LUA)
set_test(test-output-flex-way-relation-del)
set_test(test-output-flex-example-configs)
set(FLEX_EXAMPLE_CONFIGS "attributes,compatible,data-types,generic,geometries,places,route-relations,simple,unitable")
set(FLEX_EXAMPLE_CONFIGS "attributes,bbox,compatible,data-types,generic,geometries,places,route-relations,simple,unitable")
# with-schema.lua is not tested because it needs the schema created in the database
set_tests_properties(test-output-flex-example-configs PROPERTIES ENVIRONMENT "EXAMPLE_FILES=${FLEX_EXAMPLE_CONFIGS}")
endif()