On Fri, Dec 1, 2023 at 10:03 AM Ian Turton <ijtur...@gmail.com> wrote:

> Sounds like a good solution to the issue, what about the existing
> SimplifyingVisitor and other simplifiable functions like Add and Subtract,
> will you add it to them or is that left as further work?
>

Hi Ian,
the existing simplifying visitor will delegate to the SimplifyableFunction
when it finds one.
The math operations are already covered and pre-computed when all their
arguments are static for the current request (e.g., they might be env vars
whose value
is fixed in the current request). More simplifications could be carried out
for specific cases when only one of the two operands is static,
e.g. "0 + function" is the same a "function", same goes for "1 * function"
and so on, those simplifications could be added with more development, if
they are found to be common cases (TBD).

Cheers
Andrea

==

GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  339 8844549

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to