Skip to content

Commit

Permalink
Make geojson_get_bbox/1 work
Browse files Browse the repository at this point in the history
The geojson_get_bbox/1 function didn't actually work. Fix it.

Change-Id: I07124f763f4b473c3eb81e496cfb3d89179d12d0
Reviewed-on: http://review.couchbase.org/10092
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>
  • Loading branch information
vmx committed Jul 12, 2012
1 parent 06a0113 commit aac4d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geocouch/couch_spatial_updater.erl
Expand Up @@ -264,7 +264,7 @@ write_changes(Group, IndexKeyValuesToAdd, DocIdIndexIdKeys, NewSeq) ->
% Return the bounding box of a GeoJSON geometry. "Geo" is wrapped in
% brackets ({}) as returned from proplists:get_value()
geojson_get_bbox(Geo) ->
{Bbox, _, nil} = process_result([Geo|[nil]]),
{Bbox, {_, nil}} = process_result([Geo|[nil]]),
Bbox.


Expand Down

0 comments on commit aac4d3f

Please sign in to comment.