Hi Cesare,
I think the problem is that rendering transformations are not correctly
supported, currently, in GetFeatureInfo.
Your SLD is correct, but is referring a property (count) that is in the
transformed feature (PointStacker) but not in your original one, while the
GetFeatureInfo code tries to apply the filter to your original feature and
so it fails.
Maybe you could try using a layergroup where the pointstacker is used only
until a certain scale, and then the original layer is used for lower scales.
Mauro Bartolomeoli
2014-05-31 17:57 GMT+02:00 cesare gerbino <cesaregerb...@gmail.com>:
> I'm a newbie to use GeoServer and SLDs so, sorry in advance if my question
> is stupid.
>
> I'm trying to use the Point Stacker rendering transfomation for to cluster
> my point layer. I've a POSTGIS point layer with more than 514.000 points
> (all the OSM addresses in Italy ....), and so I can't to render them with a
> simple "red point" in my map and I can't render them using a clustering in
> the browser using Leaflet, OpenLayers, ecc ...
>
> The structure of my POSTGIS layer is the following
> field_1 BigDecimal true 0/1 field_2 BigDecimal true 0/1 field_3 BigDecimal
> true 0/1 field_4 String true 0/1 geom Point true 0/1
>
> The field I'm interested on is "field_4"
>
> If I try to use a default point symbol to render my layer the
> visualization is obviously slow but it works right and I can also to
> identify my point.
>
> I've tried to use the SLD that I've found here
> http://suite.opengeo.org/opengeo-docs/cartography/rt/pointstacker.html
> for clustering server side and it's working for mapping my layer as
> clustered points.
>
> I shoud add more classes in my SLD style and I'll do it, but at the moment
> the issue is that, using cluster, I can't identify points, not when
> they'are clustered (I don't want this ....), but when they are rappresented
> as single point.
>
> The error is "internal error occurred Property 'count' could not be found
> in osm_civici": I haven't that field in my layer but I've seen that is a
> "field" used in the SLD style ....
>
> NOTE: I'm using the SLD style found in OpenGeo Suite documentation at
> http://suite.opengeo.org/opengeo-docs/cartography/rt/pointstacker.html
> "as-is" and probably there is something to change but I don't know what
> ....
>
> I'm using OpenGeoSuite Version 4.0.2 on Windows 7 (GeoServer 2.4-SNAPSHOT
> Git Revision f295d37d70c3b1f0e51942e8b031253e4d75459 Build Date 20-Jan-2014
> 22:29)
>
> Thank you very much in advance!
> Cesare Gerbino
>
> http://cesaregerbino.wordpress.com/
> http://www.facebook.com/cesare.gerbino
>
> http://www.facebook.com/pages/Cesare-Gerbino-GIS-Blog/246234455498174?ref=hl
> https://twitter.com/CesareGerbino
> http://www.linkedin.com/pub/cesare-gerbino/56/494/77b
>
>
>
> ------------------------------------------------------------------------------
> Time is money. Stop wasting it! Get your web API in 5 minutes.
> www.restlet.com/download
> http://p.sf.net/sfu/restlet
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==
Dott. Mauro Bartolomeoli
@mauro_bart
Senior Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users