Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 8288 invoked from network); 1 Aug 2010 15:25:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Aug 2010 15:25:23 -0000 Received: (qmail 11837 invoked by uid 500); 1 Aug 2010 15:25:22 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 11575 invoked by uid 500); 1 Aug 2010 15:25:21 -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 11567 invoked by uid 99); 1 Aug 2010 15:25:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Aug 2010 15:25:21 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bchesneau@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Aug 2010 15:25:15 +0000 Received: by iwn8 with SMTP id 8so4322647iwn.11 for ; Sun, 01 Aug 2010 08:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Ydz8LkQA+onGBPoVZzT0h8oazCV8QeCTq70WjQ1Knc8=; b=qJhMIKMWjRyVxN3dg4wKGq3alM3rVzxvrb8s14jw1+5PG4PFxv8FviORXJy7xjbyzv ubQeQwwJkF3FEulumzKNZKZMDcbnqLV0zYJ4zdY/xl2Uk1wkjLLFkAIQ5zTw3La2+7JM sKnVp1FK8n7HX8oT6xTswPhgPsByFJPxyzr2s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=xy+KEG4e8wUX7cWowEbWEie40N5X9V9pszgU5o8HZljHWZ2KM8X3UxVMny4j6zpoCi QDcru/yLojqhhhguK6VQKaJxXY0PjXWDf8M4YJnQoLHtTU8xtem08p0fSw5CAz3WICfm Z2MNBYcalPaGULSpQrppHnU39DS28Xaf06V7M= MIME-Version: 1.0 Received: by 10.231.149.140 with SMTP id t12mr5393068ibv.100.1280676293701; Sun, 01 Aug 2010 08:24:53 -0700 (PDT) Received: by 10.231.172.4 with HTTP; Sun, 1 Aug 2010 08:24:53 -0700 (PDT) In-Reply-To: <4C5565C3.6060303@gmail.com> References: <4C5565C3.6060303@gmail.com> Date: Sun, 1 Aug 2010 17:24:53 +0200 Message-ID: Subject: Re: geocouch: limit number of points in an area From: Benoit Chesneau To: Volker Mische Cc: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Aug 1, 2010 at 2:17 PM, Volker Mische wro= te: > On 01.08.2010 10:53, Benoit Chesneau wrote: >> >> I'm looking for a way to limit number of points retrieved for an area >> depending on its size. Ie When playing with the zoom on the map I want >> to be able to only display and retrieved only main points instead of >> all the points in this area. Is there a simple way to do that actually >> ? >> >> - benoit > > Hi Benoit, > > there a two ways. Either introducing a "limit" parameter, but that's > probably not what you want. It would limit to a arbitrary selection (not = the > "main points" as you'd like to have it). > You probably want clusters. My suggestion is to do it on the client side > with OpenLayers' cluster strategy [1][2]. > > [1] http://openlayers.org/dev/examples/strategy-cluster.html > [2] http://openlayers.org/dev/examples/strategy-cluster-threshold.html > > Cheers, > =A0Volker > This solution doesn't work when you have a lot of points though. Do you plan to add such things to geocouch ? - benoit