From 4dba4ef64151a17ae920bbf7c269688b6b365691 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Tue, 16 Oct 2018 15:55:59 +0200 Subject: [PATCH] Tweak the scale denominator for pg-mvt renderer The scale denominator is calculated with float values and more precision, resulting in different (but more accurate) values --- test/acceptance/date-wrapping.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/acceptance/date-wrapping.spec.js b/test/acceptance/date-wrapping.spec.js index abe51ff9..ce51d558 100644 --- a/test/acceptance/date-wrapping.spec.js +++ b/test/acceptance/date-wrapping.spec.js @@ -294,13 +294,13 @@ describe('date-wrapping', () => { type: 'Feature', id: 0, geometry: { type: 'Point', coordinates: [0, 0] }, - properties: { cartodb_id: 0, date: 1527810000, sc: 559082000 } + properties: { cartodb_id: 0, date: 1527810000, sc: 559082264.0287178839788058162356 } }, { type: 'Feature', id: 1, geometry: { type: 'Point', coordinates: [0, 0] }, - properties: { cartodb_id: 1, date: 1527900000, sc: 559082000 } + properties: { cartodb_id: 1, date: 1527900000, sc: 559082264.0287178839788058162356 } } ]; const actual = JSON.parse(mvt.toGeoJSONSync(0)).features;