Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C38DDC980 for ; Mon, 23 Jul 2012 10:07:40 +0000 (UTC) Received: (qmail 33531 invoked by uid 500); 23 Jul 2012 10:07:36 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 33262 invoked by uid 500); 23 Jul 2012 10:07:32 -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 33184 invoked by uid 99); 23 Jul 2012 10:07:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2012 10:07:28 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of markus4mayr.lists@gmail.com designates 209.85.217.180 as permitted sender) Received: from [209.85.217.180] (HELO mail-lb0-f180.google.com) (209.85.217.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2012 10:07:19 +0000 Received: by lbbgj3 with SMTP id gj3so8209215lbb.11 for ; Mon, 23 Jul 2012 03:06:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=J2ah26hGZEEzw2+CegW3VXJSxAL3JhQy4vMMXKBxkg4=; b=edlj0/xpRjKSZ3NA/iNILkX8rJXXaPGlNecb5uKz0OosRgGVreZ1HS5LJ8pEdzuzZ2 q+g9fLmoIgCOygtdsYz6K2f++LZikrf6N0x5QKy46KihjnxpZ3pZ8Zvk0/sGws99na7A TP00hNCP6S2Uq0VJmLxu98ZmeRyBtPQFA09+xuGTm0d0Ed7SdSBCWl4Er+1xPGic+pRn vDUtcAi8WrpgHOfVSYdbOG2d8HIx6f6DWd/EsBIgdwVZ+vb/xu+dZCqTJgZOjBJev4R3 KDGxhvaAdVgBf+62dbUa46zzb3BnXg3RJ8sakVFwIv47TKkqys54kEDRs5/qQjFQfPaz r9YQ== Received: by 10.152.104.171 with SMTP id gf11mr16224391lab.5.1343038018487; Mon, 23 Jul 2012 03:06:58 -0700 (PDT) Received: from [78.104.178.152] ([78.104.178.152]) by mx.google.com with ESMTPS id fv16sm12995143lab.9.2012.07.23.03.06.56 (version=SSLv3 cipher=OTHER); Mon, 23 Jul 2012 03:06:57 -0700 (PDT) Message-ID: <500D223F.20603@gmail.com> Date: Mon, 23 Jul 2012 12:06:55 +0200 From: ScubbX User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Volker Mische CC: user@couchdb.apache.org Subject: Re: Error in Spatial-Index-Creation ? References: <500ABF44.40005@gmail.com> <500D1E3C.30203@gmail.com> In-Reply-To: <500D1E3C.30203@gmail.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Thank you for this information! I guess geocouch will work with coucdb 1.3.x at some point in time? (looking foreward to polygon-queries) About the error I described: After creating a new design-document to store my views and stopping using double-quotes but single-quotes in my views, they work again. :-) Am 2012-07-23 11:49, schrieb Volker Mische: > On 07/21/2012 04:40 PM, ScubbX wrote: >> Hello! >> >> I get an error-return when executing a spatial view for the first time. >> Everything goes fine when using non-spatial views. The index-generation >> is aborting and the following error is displayed: >> >> |{"error":"{function_clause, >> [{couch_spatial_updater,process_result, >> [[<<\"railway\">>||,[<<\"8091320\">>,<<\"node\">>,<<\"halt\">>]]]}, >> {couch_spatial_updater,'-process_results/1-fun-0-'||,2}, >> {lists,foldl,3}, >> {lists,map,2}, >> {lists,map,2}, >> {lists,map,2}, >> {couch_spatial_updater||,spatial_docs,2}, >> {couch_spatial_updater,spatial_compute,2}]}","reason":"{gen_server,call,[<0.18574||.0>,{request_group,445226},infinity]}"}| >> >> >> This happens with different CouchDB installations (Ubuntu 12.04, a >> self-compiled 1.2.0 and an older CouchBase in a VirtualMachine) on large >> databases (in this case 440.000 entries, the error happens after about >> processing 18.000). The view worked fine when executed on a database >> with only about 2.300 entries. >> >> The spatial view looks like this (it has become a bit bloated because of >> debugging): >> >> function(doc) { >> if(doc.geometry && doc.properties) { >> if(doc.properties.tags && doc.geometry.coordinates){ >> if(doc.properties.tags.amenity) { >> if(doc.properties.tags.amenity == "bicycle_parking") { >> emit(doc.geometry, 1); >> }}}}} >> >> I tried other spatial-views but they produce the same error. It seems to >> me like an internal problem, or could there be something wrong with the >> data? The document that produced the error is this: >> >> {"total_rows":445220,"offset":413135,"rows":[ >> {"id":"node8091320", >> "key":"node8091320", >> "value":{ >> "_id":"node8091320", >> "_rev":"1-2eb0febff1242a1aa7514991a03a5e05", >> "geometry":{ >> "type":"Point", >> "coordinates":[16.3148334,48.2232677]}, >> "type":"Feature", >> "properties":{ >> "changeset":9169859, >> "uid":129531, >> "tags":{ >> "railway":"halt", >> "uic_ref":"8100271", >> "name":"Hernals" >> }, >> "timestamp":"2011-08-30T18:27:09Z", >> "version":28, >> "user":"almich" >> } >> } >> } >> ]} >> >> I hope you can see something wrong her and would appreciate your help or >> comment. >> >> Greetings, >> Markus >> >> PS: The installations of the master-branch of CouchDB is going fine, but >> the master of GeoCouch does not compile for me. >> > Hi Markus, > > your "PS" are the important bits. Currently GeoCouch doesn't work with > the master branch of CouchDB (which will become 1.3.x). You have to use > the 1.2.x branch (or the 1.2.0 release). In order to get GeoCouch to > work with that, you also have to use the correct branch of GeoCouch, > which would be the "couchdb1.2.x" branch. > > Cheers, > Volker