From 8b5fbf956545746d0f28e66fb73275ad46945259 Mon Sep 17 00:00:00 2001 From: Christian Versloot Date: Thu, 7 Oct 2021 19:08:04 +0200 Subject: [PATCH] feat: add support for complex geometries (#218) (h/t @christianversloot) --- src/scripts/get_geom.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/get_geom.sql b/src/scripts/get_geom.sql index 6aa563e97..b48ee1ad0 100644 --- a/src/scripts/get_geom.sql +++ b/src/scripts/get_geom.sql @@ -1,4 +1,4 @@ SELECT - ST_AsMVTGeom (ST_Transform ({geometry_column}, 3857), {mercator_bounds}, {extent}, {buffer}, {clip_geom}) AS geom {properties} FROM {id}, bounds + ST_AsMVTGeom (ST_Transform (ST_CurveToLine({geometry_column}), 3857), {mercator_bounds}, {extent}, {buffer}, {clip_geom}) AS geom {properties} FROM {id}, bounds WHERE {geometry_column} && bounds.srid_{srid}