Hi,
I'm looking at usage of PointStacker in a scenario where:
* there are isolated points as well as flocks of tightly grouped points at
the same zoom level
* there are cases of many repeated points at the exact same location

In both cases the current behavior of the point stacker visibly moves the
points from their original location, generating some weird output on the map
(think of a point location that is known to be on the roads, that ends up
being moved towards the center of a park because the cell used for stacking
has its center there).

Now, I fully understand why the point stacking algorithm tries to keep the
resulting point close to the center of the stacking cell, to avoid the
resulting map having superimposed symbols (the whole point of the stacking
is to avoid that no?).
For some maps one can just switch from stacking to displaying points as
they are, at a given scale, but for others single points are visible when
there is still a large number of stacked points in other areas of the map.

So, I would like to propose a new flag that allows to preserve the original
location or the points, "preserveLocations" with two possible values:
* single: preserve the original location if there is a single point in the
stack
* superimposed: preserve the original location if all the points in the
stack have the very same location
* never: what happens today, which would be the default value

The above tries to leave the floor free for another option that controls
how the averaging is done, whether including the center point, or just
using the points being stacked. While this one would also preserve the
location of the single points, I believe it would work badly when the code
is working on a zoomed out situation where large number of points are
getting stacked, it would end up generating quite a bit of overlaps, no?

Opinions?

Cheers
Andrea




-- 
==
GeoServer training in Milan, 6th & 7th June 2013!  Visit
http://geoserver.geo-solutions.it for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to