mirror of
https://github.com/CartoDB/crankshaft.git
synced 2024-11-01 10:20:48 +08:00
test->avg area
This commit is contained in:
parent
317f7f2fa6
commit
e2f8c67034
File diff suppressed because one or more lines are too long
@ -4,7 +4,12 @@ SET client_min_messages TO WARNING;
|
||||
WITH a AS (
|
||||
SELECT
|
||||
ARRAY[ST_GeomFromText('POINT(2.1744 41.403)'),ST_GeomFromText('POINT(2.1228 41.380)'),ST_GeomFromText('POINT(2.1511 41.374)'),ST_GeomFromText('POINT(2.1528 41.413)'),ST_GeomFromText('POINT(2.165 41.391)'),ST_GeomFromText('POINT(2.1498 41.371)'),ST_GeomFromText('POINT(2.1533 41.368)'),ST_GeomFromText('POINT(2.131386 41.41399)')] AS geomin
|
||||
),
|
||||
b as(
|
||||
SELECT
|
||||
(st_dump(cdb_crankshaft.CDB_voronoi(geomin, 0.2, 1e-9))).geom as result
|
||||
FROM a
|
||||
)
|
||||
SELECT
|
||||
cdb_crankshaft.CDB_voronoi(geomin, 0.2, 1e-9) as result
|
||||
FROM a;
|
||||
avg(st_area(result)) as avg_area
|
||||
FROM b;
|
||||
|
Loading…
Reference in New Issue
Block a user