Hi, You could port your data to a Postgres (or whatever RDBMS you fancy) and calculate whatever vector attribute you need. It should be pretty simple, then, to just reference this attribute in the SLD styling. I'm not sure, off hand, if SLD supports math.
With a little digging I found this SO thread <https://gis.stackexchange.com/a/131111> that shows how to use basic math functions within SLD styling. Hope this helps. Cheers, Todd On Thu, Oct 24, 2019 at 12:07 PM CON NS Agustin (ICA) via Geoserver-users < [email protected]> wrote: > Hi everyone, > > > > I need your help... > > > > I have a layer created from a SQL VIEWER in GEOSERVER with PostGIS as > store. I need to include in the style (SLD File) created in GeoServer na > angle parameter (MAGNETIC DECLINATION) to rotate a SVG (ROSE COMPASS) > IMAGE. The problem is that I would have to calculate this in the > application and then pass it as a parameter on the SLD in GEOSERVER. > > ANY IDEA TO DO THAT? > > > > Regards > _______________________________________________ > 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 > > > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Todd Jacobus GIS Developer [image: TCARTA_ Logo.jpg] Office: +1 (303) 284 6144 Mob: +1 Email: [email protected] Address: 3015 W 9th Ave, Denver, CO 80204, USA WWW.TCARTA.COM <http://www.tcarta.com/>| TWITTER <http://www.twitter.com/tcarta_Marine> | LINKED IN <https://www.linkedin.com/company/2385157?trk=tyah&trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A2385157%2Cidx%3A2-1-2%2CtarId%3A1486997780192%2Ctas%3Atcarta%20ma>| CONFIDENTIALITY: This message may contain privileged and confidential information intended only for the use of the addressee. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify TCarta immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of the Company. Please consider the environment before printing this 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 [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
