+1 -- Jody Garnett
On Thu, 17 Dec 2020 at 07:20, Daniele Romagnoli < daniele.romagn...@geo-solutions.it> wrote: > Hi Devs, > I'm working on a bug involving CSS style translation to SLD. > The fix would be in gt-xml adding a dependency to gt-cql but this will > result in a cyclic dependency since the CQL class has a "void main" method > using an xml FilterTransformer (from gt-xml module), for interactive > testing. > I was wondering if it would be ok to move the main method to the doc > section, as a snippet of code in > https://docs.geotools.org/latest/userguide/library/cql/cql.html > Any objection? Any feedback? > > Please, let me know. > > TLDR: > The bug is in CSS styles containing expressions in a RasterSymbolizer > ColorMapEntry (quantity). The problem occurs when the CSS get translated to > SLD through SLDTransformer in gt-xml. The fix would be checking if the > quantity expression is a simple literal or not. If not, the transformation > should go through a CQL.toCQL(Expression) call. > The problem with that is that gt-xml will need gt-cql but I have noticed > that maven complains against a cyclic dependency due to a main method using > FilterTransformer to produce output for the testing samples. > > -- > Regards, > Daniele Romagnoli > == > GeoServer Professional Services from the experts! Visit > http://goo.gl/it488V for more information. > == > > Ing. Daniele Romagnoli > Senior Software Engineer > > GeoSolutions S.A.S. > Via di Montramito 3/A > 55054 Massarosa (LU) > Italy > phone: +39 0584 962313 > fax: +39 0584 1660272 > > http://www.geo-solutions.it > 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 >
_______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel