fixing bug with segments pulling at wrong geom level by default

This commit is contained in:
John Krauss
2016-04-13 16:11:26 -04:00
parent 97f73b11e0
commit 384a63b8a2

View File

@@ -554,11 +554,13 @@ target_cols := Array[
$query$
SELECT (categories)[1]
FROM OBS_GetCategories($1,
Array['"us.census.spielman_singleton_segments".X10'])
Array['"us.census.spielman_singleton_segments".X10'],
$2
)
LIMIT 1
$query$
INTO segment_name
USING geom;
USING geom, geometry_level;
q :=
format( $query$