tests for getpopulation
This commit is contained in:
parent
24eeaa787d
commit
722b9404dc
@ -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...
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user