Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 3333 invoked from network); 20 Aug 2010 17:42:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Aug 2010 17:42:26 -0000 Received: (qmail 23430 invoked by uid 500); 20 Aug 2010 17:42:25 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 23156 invoked by uid 500); 20 Aug 2010 17:42:24 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 23148 invoked by uid 99); 20 Aug 2010 17:42:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Aug 2010 17:42:24 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,T_TVD_MIME_EPI X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [128.200.36.30] (HELO translab.its.uci.edu) (128.200.36.30) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Aug 2010 17:42:18 +0000 Received: from translab.its.uci.edu (localhost.localdomain [127.0.0.1]) by translab.its.uci.edu (8.13.1/8.12.10) with ESMTP id o7KHfsB1021459 for ; Fri, 20 Aug 2010 10:41:54 -0700 Received: (from jmarca@localhost) by translab.its.uci.edu (8.13.1/8.13.1/Submit) id o7KHfrBN021458 for user@couchdb.apache.org; Fri, 20 Aug 2010 10:41:53 -0700 Date: Fri, 20 Aug 2010 10:41:53 -0700 From: James Marca To: CouchDB users mailing list Subject: Reduce in GeoCouch? Message-ID: <20100820174153.GA9733@translab.its.uci.edu> Mail-Followup-To: CouchDB users mailing list Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-ITS-MailScanner-Information: Please contact the ISP for more information X-ITS-MailScanner: Found to be clean X-ITS-MailScanner-From: jmarca@translab.its.uci.edu X-ITS-Spam-Status: No --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi,=20 Apologies if this isn't the list for geocouch questions. Are there any plans to support map/reduce for geocouch queries?=20=20 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) ...=20 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) Regards,=20 James --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFMbr5h+t/6L/9qydcRAihuAJ4shjgmjSfDtpoqqIHJv1Qv41PJ8gCdF4dU qJxbjTbMkphXZxZR2QMdYCA= =Jx4I -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy-- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.