Hi!
I am rendering some point data using the PointStacker transformation and then styled as a circle – it’s pretty much a straight copy of the example in the docs… 3 rules in my style – 1 point, 2-50 points and more than 50 points.
If I overlay the data using the plain “point” style, then I notice that the “clustered” style actually displays the data offset from the original point if I have a cell size of anything other than 1. Even for single point clusters. The larger the cell size, the more they are offset.
Is there any way that I can get the clustered markers to display on the original point – or for multi-points probably on something like the “middle” of the points.
I’ve tried using the “preserveLocation” parameter but it doesn’t seem to have any effect.
I also tried applying an “offset” geometry filter to the PointSymbolizer but that didn’t seem to do much either.
My style looks a little like….
<?xml version="1.0" encoding="ISO-8859-1"?><StyledLayerDescriptor …>
…
…
<ogc:Function name=“gs:PointStacker”>
<ogc:Function name=“parameter”>
ogc:Literaldata</ogc:Literal>
</ogc:Function>
<ogc:Function name=“parameter”>
ogc:LiteralcellSize</ogc:Literal>
ogc:Literal20</ogc:Literal>
</ogc:Function>
<ogc:Function name=“parameter”>
ogc:LiteralpreserveLocation</ogc:Literal>
ogc:LiteralSingle</ogc:Literal>
</ogc:Function>
<ogc:Function name=“parameter”>
ogc:LiteraloutputBBOX</ogc:Literal>
<ogc:Function name=“env”>
ogc:Literalwms_bbox</ogc:Literal>
</ogc:Function>
</ogc:Function>
<ogc:Function name=“parameter”>
ogc:LiteraloutputWidth</ogc:Literal>
<ogc:Function name=“env”>
ogc:Literalwms_width</ogc:Literal>
</ogc:Function>
</ogc:Function>
<ogc:Function name=“parameter”>
ogc:LiteraloutputHeight</ogc:Literal>
<ogc:Function name=“env”>
ogc:Literalwms_height</ogc:Literal>
</ogc:Function>
</ogc:Function>
</ogc:Function>
rule1
1 Hotspotogc:PropertyIsLessThanOrEqualTo
ogc:PropertyNamecount</ogc:PropertyName>
ogc:Literal1</ogc:Literal>
</ogc:PropertyIsLessThanOrEqualTo>
</ogc:Filter>
circle
#FFFFFF
8
…
Any help much appreciated.
Simon Oldfield
National Earth Observation Group | Environmental Geoscience Division | GEOSCIENCE AUSTRALIA
__________________________________________________****__________
Phone: +61 2 6249 9589 Fax: +61 2 6249 9999
Email: Simon.Oldfield@anonymised.com Web: www.ga.gov.au
Cnr Jerrabomberra Avenue and Hindmarsh Drive Symonston ACT
GPO Box 378 Canberra ACT 2601 Australia
Applying geoscience to Australia’s most important challenges