Re: [Geoserver-users] CSS (or SLD) styling: create label-geometry from 2 layer attributes

2023-10-26 Thread Ian Turton
White space gets reduced in the XML, so you might need a cdata block around it. Not sure how CSS handles it. Ian On Thu, 26 Oct 2023, 20:44 Peter Smythe, wrote: > Thank you very much for your answers. All 3 of them are super useful. > > Ian, I do not have the luxury of building up the string i

Re: [Geoserver-users] CSS (or SLD) styling: create label-geometry from 2 layer attributes

2023-10-26 Thread Peter Smythe
Thank you very much for your answers. All 3 of them are super useful. Ian, I do not have the luxury of building up the string in a single attribute, so I need to use the Concatenate or strConcat functions from Jody's reference. Andrea, the WKT X and Y coordinates are not separated by a comma but

[Geoserver-users] Unable to set PostGIS Store SSL Mode to VERIFY_FULL

2023-10-26 Thread Valentin SAMIR
Hello, I'm trying to set a PostGIS store to sslmode=verify-full but when I select VERIFY_FULL in the drop down of the webui, the following error is raised : Unable to obtain connection: Cannot create PoolableConnectionFactory (Invalid sslmode value: VERIFY_FULL) To reproduce the error on a min

Re: [Geoserver-users] CSS (or SLD) styling: create label-geometry from 2 layer attributes

2023-10-26 Thread Ian Turton
I usually use `geomFromWKT(geometry)` with a string like 'POINT('+x+' '+y+')' as the parameter. But a nicer function would be useful. There is also a pole of accessibility function that is better than centroid if you have oddly shaped polygons. Ian On Thu, 26 Oct 2023 at 16:22, Jody Garnett wro

Re: [Geoserver-users] CSS (or SLD) styling: create label-geometry from 2 layer attributes

2023-10-26 Thread Jody Garnett
There should be a function to create a point from lat, Lon but I do not see it in the function list. It is a little to do anything other than transform the main geometry - since often the data is queried using a BBOX against the main geometry. For greater control I would recommend use the centroi

[Geoserver-users] CSS (or SLD) styling: create label-geometry from 2 layer attributes

2023-10-26 Thread Peter Smythe
Hi all I am trying to use 2 numeric attributes called label_lat and label_lng to create a point geometry for the labeling of a polygon. Can anyone point me to the correct format, if this is indeed possible? I cannot find the information on https://docs.geoserver.org/latest/en/user/styling/css/in