← Back to team overview

dhis2-devs-core team mailing list archive

Re: gis event clustering on dev

 

Hi,

The current fallback is to do the clustering directly in the browser, which
should work for up to around 50,000 events in chrome (but it will of course
take time to transfer all the data):
https://github.com/Leaflet/Leaflet.markercluster#handling-lots-of-markers

PostGIS will likely be required for other advanced GIS features in the near
future, but we should try to keep the current functionality for all users.
We could also increase the compatibility by using Hibernate Spatial:
http://www.hibernatespatial.org

Bjørn



On Mon, Mar 28, 2016 at 10:39 AM, Lars Helge Øverland <lars@xxxxxxxxx>
wrote:

> No fallback on server, if you want this one must install PostGIS.
> Clustering is so far for events, org units will come in next release.
> Clustering happens as part of analytics in the database so scalability is
> roughly equal to the general analytics features.
>
>
>
> On Mon, Mar 28, 2016 at 5:19 AM, Morten Olav Hansen <morten@xxxxxxxxx>
> wrote:
>
>> Ok, that sounds very promising. Is there a software fallback for this?
>> geotools or something? if the user don't have postgis extension installed
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Fri, Mar 25, 2016 at 6:00 AM, Jan Henrik Øverland <
>> janhenrik.overland@xxxxxxxxx> wrote:
>>
>>> Bjørn is the expert (and Lars catching up on PostGIS) can provide the
>>> details, but in general: Client side clustering (Leaflet) is a slightly
>>> smoother user experience and can handle about 50k points. For event data we
>>> need something more powerful and as Bjørn says the current server side
>>> cluster solution quite easily handled 1m+ points. The plan is to switch
>>> between those two solutions behind the scenes as applicable.
>>> On Mar 24, 2016 15:01, "Bjørn Sandvik" <bjorn@xxxxxxxxx> wrote:
>>>
>>>> I have tested it on 1 million events on an external PostGIS-server, and
>>>> it worked fine. I'll do a similar test on a DHIS 2 db instance after the
>>>> Easter break.
>>>>
>>>> Bjørn
>>>>
>>>> On Thu, Mar 24, 2016 at 12:43 AM, Morten Olav Hansen <morten@xxxxxxxxx>
>>>> wrote:
>>>>
>>>>> Very nice. Any idea on how it scales? 10000 facilities? 50000? More?
>>>>>
>>>>>
>>>>> On Thursday, 24 March 2016, Bob Jolliffe <bobjolliffe@xxxxxxxxx>
>>>>> wrote:
>>>>>
>>>>>> Looks cool.  Very intuitive.
>>>>>>
>>>>>> On 23 March 2016 at 16:45, Lars Helge Øverland <lars@xxxxxxxxx>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> we've been setting up PostGIS on /dev, meaning you can try out the
>>>>>>> new event clustering feature that Bjørn and Jan have been developing.
>>>>>>>
>>>>>>> 1. Go to event layer in top left corner.
>>>>>>>
>>>>>>> 2. Select "Inpatient morbidity mortality" program.
>>>>>>>
>>>>>>> 3. Select a data element, e.g. "Age in years".
>>>>>>>
>>>>>>> 4. Under periods, select e.g. Jan 2015 to December 2016.
>>>>>>>
>>>>>>> 5. Under organisation units, select e.g. Chiefdom level, and click
>>>>>>> update.
>>>>>>>
>>>>>>> Zoom in and out with mousewheel/touchpad to see events cluster and
>>>>>>> explode.
>>>>>>>
>>>>>>>
>>>>>>> https://play.dhis2.org/dev/dhis-web-mapping/#
>>>>>>>
>>>>>>>
>>>>>>> [image: Inline image 1]
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Favorites not yet supported.
>>>>>>>
>>>>>>> --
>>>>>>> Lars Helge Øverland
>>>>>>> Lead developer, DHIS 2
>>>>>>> University of Oslo
>>>>>>> Skype: larshelgeoverland
>>>>>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Mailing list: https://launchpad.net/~dhis2-devs-core
>>>>>>> Post to     : dhis2-devs-core@xxxxxxxxxxxxxxxxxxx
>>>>>>> Unsubscribe : https://launchpad.net/~dhis2-devs-core
>>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> --
>>>>> Morten Olav Hansen
>>>>> Senior Engineer, DHIS 2
>>>>> University of Oslo
>>>>> http://www.dhis2.org
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Bjørn Sandvik
>>>> GIS developer, DHIS 2
>>>> University of Oslo
>>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>>
>>>> --
>>>> Mailing list: https://launchpad.net/~dhis2-devs-core
>>>> Post to     : dhis2-devs-core@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~dhis2-devs-core
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org/>
>
>


-- 
Bjørn Sandvik
GIS developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>

PNG image


Follow ups

References