tests for getpopulation

This commit is contained in:
John Krauss 2016-04-21 11:39:44 -04:00
parent 24eeaa787d
commit 722b9404dc
2 changed files with 21 additions and 0 deletions

View File

@ -101,6 +101,16 @@ Done.
{"name" : "total_pop", "value" : 1655}
(1 row)
obs_getpopulation
-------------------
9516.27915900609
(1 row)
obs_getpopulation
-------------------
12140.2484103572
(1 row)
Dropping obs_table.sql fixture table...
Done.
Dropping obs_column.sql fixture table...

View File

@ -139,5 +139,16 @@ SELECT * FROM
'"us.census.acs".B01001001'
);
-- Point-based OBS_GetPopulation, default normalization (area)
SELECT * FROM
cdb_observatory.OBS_GetPopulation(
cdb_observatory._TestPoint()
);
-- Poly-based OBS_GetPopulation, default normalization (none)
SELECT * FROM
cdb_observatory.OBS_GetPopulation(
cdb_observatory._TestArea()
);
\i test/sql/drop_fixtures.sql