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 ...>
<NamedLayer>
...
<UserStyle>
...
<FeatureTypeStyle>
<Transformation>
<ogc:Function name="gs:PointStacker">
<ogc:Function name="parameter">
<ogc:Literal>data</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>cellSize</ogc:Literal>
<ogc:Literal>20</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>preserveLocation</ogc:Literal>
<ogc:Literal>Single</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>outputBBOX</ogc:Literal>
<ogc:Function name="env">
<ogc:Literal>wms_bbox</ogc:Literal>
</ogc:Function>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>outputWidth</ogc:Literal>
<ogc:Function name="env">
<ogc:Literal>wms_width</ogc:Literal>
</ogc:Function>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>outputHeight</ogc:Literal>
<ogc:Function name="env">
<ogc:Literal>wms_height</ogc:Literal>
</ogc:Function>
</ogc:Function>
</ogc:Function>
</Transformation>
<Rule>
<Name>rule1</Name>
<Title>1 Hotspot</Title>
<ogc:Filter>
<ogc:PropertyIsLessThanOrEqualTo>
<ogc:PropertyName>count</ogc:PropertyName>
<ogc:Literal>1</ogc:Literal>
</ogc:PropertyIsLessThanOrEqualTo>
</ogc:Filter>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>circle</WellKnownName>
<Fill>
<CssParameter name="fill">#FFFFFF</CssParameter>
</Fill>
</Mark>
<Size>8</Size>
</Graphic>
</PointSymbolizer>
</Rule>
...
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
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: [email protected] Web: www.ga.gov.au<http://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
Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) is
intended only for the person or entity to which it is addressed. If you are not
the intended recipient, then you have received this e-mail by mistake and any
use, dissemination, forwarding, printing or copying of this e-mail and its file
attachments is prohibited. The security of emails transmitted cannot be
guaranteed; by forwarding or replying to this email, you acknowledge and accept
these risks.
-------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users