use sq km, do not filter by bounds, add segment function

This commit is contained in:
John Krauss
2016-04-11 17:54:47 -04:00
parent e4eaa44c2d
commit 5d9571a954
3 changed files with 214 additions and 3 deletions
-1
View File
@@ -23,7 +23,6 @@ BEGIN
AND coltable.column_id = col.id
AND coltable.table_id = tab.id
AND col.id = $1
AND ST_Intersects($2, ST_SetSRID(bounds::box2d::geometry, 4326))
)
'
USING geometry_id, geom