Tests: Avoid using st_buffer(geography)

It's really slow with PROJ6 since it involves creating different projections for almost each point,
and that's particularly slow in the new release
This commit is contained in:
Raul Marin 2019-07-03 15:14:01 +02:00
parent a3e8f45552
commit de38f1f6fd

View File

@ -96,9 +96,9 @@ describe('aggregation', function () {
const POLYGONS_SQL_1 = `
select
x + 4 as cartodb_id,
st_buffer(st_setsrid(st_makepoint(x*10, x*10), 4326)::geography, 100000)::geometry as the_geom,
st_buffer(st_setsrid(st_makepoint(x*10, x*10), 4326), 10) as the_geom,
st_transform(
st_buffer(st_setsrid(st_makepoint(x*10, x*10), 4326)::geography, 100000)::geometry,
st_buffer(st_setsrid(st_makepoint(x*10, x*10), 4326), 10),
3857
) as the_geom_webmercator,
x as value