On Thu, Dec 29, 2016 at 2:56 PM, Bennos <[email protected]> wrote:

> Is it possible to get the field values from the original features after
> using
> the PointStacker? At least for features that are not in a stack (or the
> stack == 1)?
>
> I managed to succesfully stack my points using the example SLD from [0].
> When there is only 1 point in a stack I want to show an external Graphic
> which is dependent off an attribute.
>
>     <OnlineResource xlink:type="simple" xlink:href="icons/${code}.png" />
>
> As I understand the source code on [1] the attributes are not forwarded
> through the transformation (for reasons I can understand), thus my dynamic
> display wont work. Now I wanted to ask if there is a solution existing,
> which allows me to get the needed attributes.
>

Hi,
your assessment is correct, there is no way to get that information out.
The expectation in Geotools/GeoServer is a feature collection has a uniform
schema,
that is, all feature have the same attributes, what you want instead would
be a summary
for points that are actually stacked, and the full attributes for the
isolated ones.

Going out of that path might or might not work, I'm not sure, one would
have to try it out...
you could create a collection of yours that does not enforce the uniform
schema rule (or
see if a built-in one does not care, at your risk since the behavior might
change tomorrow)
and then verify if the collection can reach to the renderer without
alteration (sometimes
they do get wrapped, again, might work today and break tomorrow).

An idea that you might try is to add a last field in the returned features
that contains
another feature, which would be null in case of a stacked point, and the
original feature
in case of a isolated feature. This also goes a bit outside of the normal
rules and
I cannot guarantee it would work, but it's worth trying.


>
> There is one thing I don't really understand: There is a question by Cesare
> on gisSE [2] addressing a similar issue but for a GetFeatureInfo where
> there
> are attributes visible in his screenshots - are they coming from the
> PointStacker or are they from somewhere else?
>

Don't know

Cheers
Andrea

-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to