incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Marca <>
Subject Reduce in GeoCouch?
Date Fri, 20 Aug 2010 17:41:53 GMT

Apologies if this isn't the list for geocouch questions.

Are there any plans to support map/reduce for geocouch queries?  
In my use case, I am emitting geojson to OpenLayers.  Currently I am
using javascript in the client to reformat the list of values into a
single FeatureCollection object.

    {'type':'FeatureCollection', 'features':[ ...push rows[value] here... ]};

I did try just writing a map/reduce pair for the spatial member of
the design doc and hoped it would work, but it didn't work:

    {"error":"{<<\"compilation_error\">>,\n <<\"Expression does not eval
    to a function. (({map:\\\"function(doc) ... 

I am using a "custom" version of geocouch... a git pull from August 19
(commit f764bcb61df8d00904c39611868db5a3a40f4178) merged with couchdb
1.0.1, plus a few minor tweaks to resolve conflicts (git is *so great*
for merging code)


View raw message