From e60f73a31b26ccaac3354c9ccf1d3f0e72ba26a7 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Mon, 21 Dec 2015 13:16:57 +0100 Subject: [PATCH] A bit of internal documentation --- scripts-available/CDB_Overviews.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts-available/CDB_Overviews.sql b/scripts-available/CDB_Overviews.sql index 3c97c8a..e1da1fe 100644 --- a/scripts-available/CDB_Overviews.sql +++ b/scripts-available/CDB_Overviews.sql @@ -1,3 +1,9 @@ +-- Determine the max feature density of a given dataset. +-- Scope: private. +-- Parameters +-- reloid: oid of the input table. It must be a cartodbfy'ed table. +-- nz: number of zoom levels to consider from z0 upward. +-- Return value: feature density (num_features / webmercator_squared_meters). CREATE OR REPLACE FUNCTION _CDB_Feature_Density(reloid REGCLASS, nz integer) RETURNS FLOAT8 AS $$