[Tile-serving] [openstreetmap/osm2pgsql] Convert some tests for the flex output to BDD-style tests (PR #1678)

Jochen Topf notifications at github.com
Mon Jun 6 14:39:48 UTC 2022


@joto commented on this pull request.



> +                points:add_row(row)
+            end
+
+            function osm2pgsql.process_way(object)
+                local row = {
+                    tags = object.tags,
+                    geom = { create = 'line' }
+                }
+
+                row.min_x, row.min_y, row.max_x, row.max_y = object:get_bbox()
+
+                highways:add_row(row)
+            end
+            """
+        When running osm2pgsql flex with parameters
+            | -x |

Maybe split into two tests, one for nodes, one for ways (and I need to add one for relations, too).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1678#discussion_r890221032
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/1678/review/996718598 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220606/f2797013/attachment.htm>


More information about the Tile-serving mailing list