From 049b082dd2c22268e71c54df35c3c56b2a208595 Mon Sep 17 00:00:00 2001 From: Erica Fischer Date: Thu, 26 Jun 2025 12:44:31 -0700 Subject: [PATCH] Test that deduplication works across tile boundaries --- tests/pbf/1.json | 2 +- tests/pbf/merged-dedup.pbf.json | 2 -- tests/pbf/merged-nodedup.pbf.json | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/pbf/1.json b/tests/pbf/1.json index d5f23dcd..2de7407d 100644 --- a/tests/pbf/1.json +++ b/tests/pbf/1.json @@ -1,3 +1,3 @@ {"type":"Feature","properties":{"what":"no id"},"geometry":{"type":"Point","coordinates":[1,1]}} {"type":"Feature","id":12345,"properties":{"what":"will survive"},"geometry":{"type":"Point","coordinates":[1,1]}} -{"type":"Feature","id":12346,"properties":{"what":"will win over the duplicate"},"geometry":{"type":"Point","coordinates":[1,1]}} +{"type":"Feature","id":12346,"properties":{"what":"will win over the duplicate even though it's in another tile"},"geometry":{"type":"Point","coordinates":[-1,-1]}} diff --git a/tests/pbf/merged-dedup.pbf.json b/tests/pbf/merged-dedup.pbf.json index c66e901e..10c9fbd0 100644 --- a/tests/pbf/merged-dedup.pbf.json +++ b/tests/pbf/merged-dedup.pbf.json @@ -4,8 +4,6 @@ , { "type": "Feature", "id": 12345, "properties": { "what": "will survive" }, "geometry": { "type": "Point", "coordinates": [ 0.966797, 0.966751 ] } } , -{ "type": "Feature", "id": 12346, "properties": { "what": "will win over the duplicate" }, "geometry": { "type": "Point", "coordinates": [ 0.966797, 0.966751 ] } } -, { "type": "Feature", "properties": { "what": "no id again" }, "geometry": { "type": "Point", "coordinates": [ 0.966797, 0.966751 ] } } , { "type": "Feature", "id": 12347, "properties": { "what": "will be added" }, "geometry": { "type": "Point", "coordinates": [ 0.966797, 0.966751 ] } } diff --git a/tests/pbf/merged-nodedup.pbf.json b/tests/pbf/merged-nodedup.pbf.json index 378c9169..343150a8 100644 --- a/tests/pbf/merged-nodedup.pbf.json +++ b/tests/pbf/merged-nodedup.pbf.json @@ -4,8 +4,6 @@ , { "type": "Feature", "id": 12345, "properties": { "what": "will survive" }, "geometry": { "type": "Point", "coordinates": [ 0.966797, 0.966751 ] } } , -{ "type": "Feature", "id": 12346, "properties": { "what": "will win over the duplicate" }, "geometry": { "type": "Point", "coordinates": [ 0.966797, 0.966751 ] } } -, { "type": "Feature", "properties": { "what": "no id again" }, "geometry": { "type": "Point", "coordinates": [ 0.966797, 0.966751 ] } } , { "type": "Feature", "id": 12346, "properties": { "what": "will be lost as a duplicate" }, "geometry": { "type": "Point", "coordinates": [ 0.966797, 0.966751 ] } }