Permalink
Browse files

Correct input format from emonk map

Change-Id: I10108443b0f862543e3a2723e117ac0926e5309b
  • Loading branch information...
1 parent dd4e5e1 commit 1cc3251fecd75ffaae32c509716f9415fb6c5a0d @daleharvey daleharvey committed Sep 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/geocouch/couch_spatial_updater.erl
@@ -144,7 +144,7 @@ spatial_docs(Proc, Docs) ->
fun(Doc) ->
% NOTE vmx: perhaps should map_doc renamed to something more
% general as it can be used for most indexers
- {ok, FunsResults} = couch_view_server:map(Proc, [Doc]),
+ {ok, [FunsResults]} = couch_view_server:map(Proc, [Doc]),
% the results are a json array of function map yields like this:
% [FunResults1, FunResults2 ...]
@@ -270,7 +270,7 @@ process_results(Results) ->
[process_result(Result)|Acc]
end, [], Results).
-process_result([{{Geo}, Value}]) ->
+process_result({{Geo}, Value}) ->
Type = proplists:get_value(<<"type">>, Geo),
Bbox = case Type of
<<"GeometryCollection">> ->

0 comments on commit 1cc3251

Please sign in to comment.