Directory reorganization and sketch of new versioning procedure

This commit is contained in:
Javier Goizueta
2016-03-08 19:35:02 +01:00
parent 46c66476b5
commit cdd2d9e722
44 changed files with 142 additions and 208 deletions

View 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