Permalink
Browse files

Make geojson_get_bbox/1 work

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...
1 parent 06a0113 commit aac4d3f64b9c24907b2461baf15e255c51b40471 @vmx vmx committed with vmx Sep 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/geocouch/couch_spatial_updater.erl
@@ -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.

0 comments on commit aac4d3f

Please sign in to comment.