Thanks for the fast reply! 

I think this will do the trick! Thank you!

Met vriendelijke groet,

Meine Toonen 

Software Engineer 




Telefoon Algemeen: +31 (0) 30 214 2081
Telefoon Support: +31 (0) 30 214 2080







B3Partners BV
Zonnebaan 12c
 3542 EC Utrecht
www.b3partners.nl
 



 From:   Andrea Aime <andrea.a...@geo-solutions.it> 
 To:   Meine Toonen <meinetoo...@b3partners.nl> 
 Cc:   geotools-gt2-users <geotools-gt2-users@lists.sourceforge.net> 
 Sent:   20-1-2021 18:45 
 Subject:   Re: [Geotools-gt2-users] Maximum size of CSS Style 


Hi Meine,
it's due to how cascading works, all possible combinations of rules must be 
tried out to see
if they can work together and override each other, in order to translate them 
in SLD, which
can only run a rule at a time, in order.


That's a combinatorial explosion, the processing time just gets out of control, 
there is nothing
we can do about it I'm afraid, we already spent very large amounts of dev time 
trying to make it 
faster.


Typically if a CSS grows that large, you're not really leveraging cascading 
anyways, so you can
enable the "flat" mode, which disables cross rule cascading fully, leaving only 
nested rule overrides
operating:
https://docs.geoserver.org/stable/en/user/styling/css/cascading.html#the-flat-translation-mode



That should make translation time pretty quick


Cheers
Andrea


On Wed, Jan 20, 2021 at 6:41 PM Meine Toonen <meinetoo...@b3partners.nl> wrote:

Hi all,


When using the css plugin in geoserver 2.18.0, I noticed when using very large 
styles geoserver hangs. No exceptions in the logfile.
When testing, we added a style in the style editor and pressed Validate. A 
spinner occurs, and for some styles it did not stop spinning.
A style with 98 lines did succeed (but it took more than 30 seconds)
A style with 112 lines did not finish. When actually adding the style, the 
application server becomes unstable/unusable with a load of > 100.


Attached is the used style.
Is there any known issue with large styles, or a maximum size of the style?


Thanks in advance!Met vriendelijke groet,

Meine Toonen 

Software Engineer 




Telefoon Algemeen: +31 (0) 30 214 2081
Telefoon Support: +31 (0) 30 214 2080







B3Partners BV
Zonnebaan 12c
 3542 EC Utrecht
www.b3partners.nl
 _______________________________________________
 GeoTools-GT2-Users mailing list
 GeoTools-GT2-Users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
 


-- 




















Regards, Andrea Aime
 == 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 
------------------------------------------------------- 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-GT2-Users mailing list 
GeoTools-GT2-Users@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users 
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to