Directory reorganization and sketch of new versioning procedure
This commit is contained in:
12
src/pg/test/sql/04_dot_density_test.sql
Normal file
12
src/pg/test/sql/04_dot_density_test.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
WITH g AS (
|
||||
SELECT ST_Buffer(ST_SetSRID(ST_MakePoint(0,0),4326)::geometry, 1000)::geometry AS g
|
||||
),
|
||||
points AS(
|
||||
SELECT (
|
||||
ST_Dump(
|
||||
cdb_crankshaft.cdb_dot_density(g.g, 100)
|
||||
)
|
||||
).geom AS p FROM g
|
||||
)
|
||||
|
||||
SELECT count(*), sum(CASE WHEN ST_Contains(g,p) THEN 1 ELSE 0 END) FROM points, g
|
||||
Reference in New Issue
Block a user