return NULL when there is no data for a measure at a geometry according to our raster. Fixes #220

This commit is contained in:
John Krauss
2016-11-29 16:41:44 +00:00
parent e5e0b39595
commit 6c08681446
3 changed files with 17 additions and 4 deletions

View File

@@ -410,7 +410,12 @@ BEGIN
ELSE geom
END;
raise notice 'Using boundary %', geom_id;
IF geom_id IS NULL THEN
RAISE NOTICE 'No boundary found for geom';
RETURN NULL;
ELSE
RAISE NOTICE 'Using boundary %', geom_id;
END IF;
IF normalize ILIKE 'area' AND numer_aggregate ILIKE 'sum' THEN
map_type := 'areaNormalized';