Skip to content

Commit 6b04f3b

Browse files
committed
fix to return type of bbox_geom fixes #9
1 parent 0d59e4e commit 6b04f3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/004_search.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ SELECT string_agg(rsort,', ') FROM sort_base(_sort);
164164
$$ LANGUAGE SQL PARALLEL SAFE SET SEARCH_PATH TO pgstac,public;
165165

166166

167-
CREATE OR REPLACE FUNCTION bbox_geom(_bbox jsonb) RETURNS box3d AS $$
167+
CREATE OR REPLACE FUNCTION bbox_geom(_bbox jsonb) RETURNS geometry AS $$
168168
SELECT CASE jsonb_array_length(_bbox)
169169
WHEN 4 THEN
170170
ST_SetSRID(ST_MakeEnvelope(

0 commit comments

Comments
 (0)