buildings = db
.exec(
`SELECT
JSON_OBJECT('id', b.fid) AS properties, b.geom AS geometry
FROM
buildings b
WHERE
b.geom IS NOT NULL
AND
Intersects(b.geom, GeomFromGeoJSON('${bufferGeomJson}'))`
)
.get.objs.then((d) => ({ type: "FeatureCollection", features: d }))