[Tile-serving] [openstreetmap/osm2pgsql] Add get_bbox() test for relations (PR #1683)

Sarah Hoffmann notifications at github.com
Tue Jun 7 15:04:42 UTC 2022


@lonvia commented on this pull request.



>              | 3857       | 2226389.8 1130195.4,2237521.8 1130195.4,2237521.8 1118890.0 |
 
+    Scenario Outline: for relations
+        Given the 0.1 grid with origin 20.0 10.1
+            | 10 | 11 |
+            |    | 12 |
+        And the OSM data
+            """
+            w20 v1 dV Nn10,n11
+            w21 v1 dV Nn11,n12
+            r30 v1 dV Ttype=route,route=bus Mw20@@
+            r31 v1 dV Ttype=route,route=bus Mw20@,w21@
+            """
+        And the lua style
+            """
+            local rels = osm2pgsql.define_relation_table('osm2pgsql_test_routes', {
+                { column = 'tags',  type = 'hstore' },

I already noticed when porting to BDD: do we need to keep the tags column? It's not relevant to the tests.

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

Message ID: <openstreetmap/osm2pgsql/pull/1683/review/998332937 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220607/ca21911a/attachment.htm>


More information about the Tile-serving mailing list