Permalink
Browse files

List functions also work without a bounding box

If you don't specify a bounding box all the data of an
spatial index is reeturned.

Change-Id: I208ab04e2613d9e3258dd5ba457ed1e23dd9cfed
  • Loading branch information...
1 parent 81c918f commit f8957f4468692cfdefc29a645471e321870dd005 @vmx vmx committed Jun 15, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 src/geocouch/couch_httpd_spatial_list.erl
@@ -76,9 +76,6 @@ list_etag(#httpd{user_ctx=UserCtx}=Req, Db, Group, Index, More) ->
couch_httpd_spatial:spatial_etag(
Db, Group, Index, {More, Accept, UserCtx#user_ctx.roles}).
-output_list(_, _, _, _, _, #spatial_query_args{bbox=nil}, _, _) ->
- throw({spatial_query_error, <<"Bounding box not specified.">>});
-
output_list(Req, Db, DDoc, LName, Index, QueryArgs, Etag, Group) ->
#spatial_query_args{
bbox = Bbox,

0 comments on commit f8957f4

Please sign in to comment.