Benoit Chesneau | 1 Aug 2010 10:53
Picon
Gravatar

geocouch: limit number of points in an area

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

Volker Mische | 1 Aug 2010 14:17
Picon

Re: geocouch: limit number of points in an area

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,
   Volker

Benoit Chesneau | 1 Aug 2010 17:24
Picon
Gravatar

Re: geocouch: limit number of points in an area

On Sun, Aug 1, 2010 at 2:17 PM, Volker Mische
<volker.mische@...> wrote:
> 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,
>  Volker
>
This solution doesn't work when you have a lot of points though. Do
you plan to add such things to geocouch ?

- benoit
(Continue reading)

Volker Mische | 1 Aug 2010 22:43
Picon

Re: geocouch: limit number of points in an area

On 01.08.2010 17:24, Benoit Chesneau wrote:
> On Sun, Aug 1, 2010 at 2:17 PM, Volker
Mische<volker.mische@...>  wrote:
>> 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,
>>   Volker
>>
> This solution doesn't work when you have a lot of points though. Do
> you plan to add such things to geocouch ?
>
(Continue reading)

J Chris Anderson | 1 Aug 2010 22:48
Picon
Favicon
Gravatar

Re: geocouch: limit number of points in an area


On Aug 1, 2010, at 1:43 PM, Volker Mische wrote:

> On 01.08.2010 17:24, Benoit Chesneau wrote:
>> On Sun, Aug 1, 2010 at 2:17 PM, Volker
Mische<volker.mische@...>  wrote:
>>> 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,
>>>  Volker
>>> 
(Continue reading)

Volker Mische | 1 Aug 2010 22:54
Picon

Re: geocouch: limit number of points in an area

On 01.08.2010 22:48, J Chris Anderson wrote:
>
> On Aug 1, 2010, at 1:43 PM, Volker Mische wrote:
>
>> On 01.08.2010 17:24, Benoit Chesneau wrote:
>>> On Sun, Aug 1, 2010 at 2:17 PM, Volker
Mische<volker.mische@...>   wrote:
>>>> 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,
>>>>   Volker
(Continue reading)

Randall Leeds | 1 Aug 2010 23:25
Picon
Gravatar

Re: geocouch: limit number of points in an area

On Sun, Aug 1, 2010 at 13:54, Volker Mische <volker.mische@...> wrote:
> On 01.08.2010 22:48, J Chris Anderson wrote:
>>
>> On Aug 1, 2010, at 1:43 PM, Volker Mische wrote:
>>
>>> On 01.08.2010 17:24, Benoit Chesneau wrote:
>>>>
>>>> On Sun, Aug 1, 2010 at 2:17 PM, Volker Mische<volker.mische@...>
>>>> wrote:
>>>>>
>>>>> 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].
>>>>>
(Continue reading)


Gmane