Re: [Geoserver-users] sortByGroup in YSLD error

2018-11-14 Thread Andrea Aime
On Fri, Oct 26, 2018 at 10:30 AM Arnaud L.  wrote:

> Why are the YSLD examples gone ? It looks like they were replaced by
> CSS. Did I make a bad choice with YSLD ?
>

Hi,
I've waited some time to answer this one to allow others to chime in, but
it did not happen.
Full disclosure, I am the maintainer of the CSS module and dislike YAML in
any form and shape,
so if you're wondering about my answer being biased, well, it probably is.
Up to you to decide whether to ignore it, or not :-p

Let's have a look at some factual bits:

   - The YSLD module is supposedly maintained, but you'll find no one of
   the people involved with it answering questions about it on this list (at
   least, not recently, I did not look that far back)
   - The language module history shows that most of the changes have been
   made in the last two years have been done as a side effect of some other
   change
   - There are pull requests made against the module that are months old,
   and being ignored, see https://github.com/geotools/geotools/pull/2076 ,
   although there are also some being looked at,
   https://github.com/geotools/geotools/pull/2137

The module did not get replaced by CSS, if anything, it tried to play the
opposite game (being the replacement for CSS), but without an active
maintainership, it looks like it's falling a bit on the sidelines. One
could also say that the code is "done", which would be at least partially
fair (not fully, as the rendering engine changes, the authors should keep
up with it), however this is not addressing the lack of user support.

That said, one of the nice things about open source is that anyone
interested in the future of the module can become maintainer, that is:

   - Answer questions about it on the lists (geotools and geoserver ones)
   - Look at the tickets and try to solve some (no expectation of ETA about
   them, more like "do something when you have time", but without having years
   in between of course)
   - Review pull requests about it, help keep the module working in face of
   large codebase changes, assist other developers trying to figure out how
   the module works

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
--- *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.*
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] sortByGroup in YSLD error

2018-10-26 Thread Arnaud L.

Hi Brad, thanks for your answer

Le 26/10/2018 à 10:27, br...@frogmouth.net a écrit :

YSLD examples can be found here: 
https://docs.geoserver.org/latest/en/user/styling/ysld/cookbook/index.html


Yes I have read these pages, but they seem incomplete.
The x-sortBy and x-sortByGroup properties are not mentionned anywhere in 
this documentation.


Furthermore, the "z-ordering across FeatureTypeStyle" used to have 
example styles in YSLD. I can't find them anymore.


Best regards

--
Arnaud


___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] sortByGroup in YSLD error

2018-10-26 Thread bradh
YSLD examples can be found here: 
https://docs.geoserver.org/latest/en/user/styling/ysld/cookbook/index.html

I don't know the answer to your other question.

Brad




___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] sortByGroup in YSLD error

2018-10-26 Thread Arnaud L.

Le 26/10/2018 à 09:21, Arnaud L. a écrit :

What's wrong with this style ?


I think I found the problem, but I don't understand it :
ALL the featurestyles in the layer must have the x-sortByGroup property 
set.
Why is it so ? That's not what I understand from the documentation. In 
https://docs.geoserver.org/latest/en/user/styling/sld/extensions/z-order/syntax.html#z-ordering-across-layers, 
it is clearly stated that the rails layer has "two FeatureTypeStyle, one 
with a group, the other not".




PS : how come I can't find any YSLD example anymore ? The YSLD reference
does not mention the vendor options like x-sortBy anymore, is this
format being abandonned ?


I'm still worried about that.
Why are the YSLD examples gone ? It looks like they were replaced by 
CSS. Did I make a bad choice with YSLD ?


Best regards

--
Arnaud


___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] sortByGroup in YSLD error

2018-10-26 Thread Arnaud L.

Hi all

I have two layers that I query together via WMS, and I'd like to order 
features between them as in the "z-ordering across layers" example in 
the doc.

I style the layers in YSLD.
In my first style, i have a bunch of FeatureTypeStyles, and only the 
last one has a "x-sortBy" property.
In my second style, all FeatureTypeStyles have a "x-sortBy" property and 
a "x-sortByGroup" property.


The problem is that as soon as I add the "x-sortByGroup" property in the 
first layer's style, WMS rendering breaks with this stack trace :


java.lang.NullPointerException
at 
org.geotools.renderer.lite.ZGroupLayerFactory.ensureSortProperties(ZGroupLayerFactory.java:175)
at 
org.geotools.renderer.lite.ZGroupLayerFactory.buildNewFeatureLayer(ZGroupLayerFactory.java:159)
at 
org.geotools.renderer.lite.ZGroupLayerFactory.addToSplitLayers(ZGroupLayerFactory.java:144)
at 
org.geotools.renderer.lite.ZGroupLayerFactory.arrangeOnZGroups(ZGroupLayerFactory.java:121)
at 
org.geotools.renderer.lite.ZGroupLayerFactory.filter(ZGroupLayerFactory.java:85)
at 
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:803)
at 
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:569)

[...]
(I don't know if further trace is relevant, I think the problem is in 
ens ensureSortProperties)


What's wrong with this style ?


PS : how come I can't find any YSLD example anymore ? The YSLD reference 
does not mention the vendor options like x-sortBy anymore, is this 
format being abandonned ?



Thanks a lot !

Best regards

--
Arnaud





___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users