There are various ways styling go wrong but your choice of SLD editor or styling language don’t have a lot to do with it. If a SLD validates and draws a legend, (you need to check preview as well as there are valid SLD expressions that geoserver cant draw ) but fails on layer preview it is nearly always (maybe every time) a mismatch between property (or possibly layer) names used in the SLD and what is actually in the layer that the SLD is being applied to. Validate by itself isn’t enough. Unless you have a style editor that is tightly integrated to layer it being applied to, this is always going to be problem. All of the options work in a production environment but all of them require testing on actual layer. If you don’t have a copy of the production environment on a test server, then you can safely test by creating/editing the style with a new name, add it as an allowed style to the layer and in layer preview, press the … and change the style [cid:[email protected]] If it fails, the geoserver log is usually pretty good at identifying the offending property in the SLD.
From: Ville Koivisto <[email protected]> Sent: Friday, 9 November 2018 04:10 To: [email protected] Subject: Re: [Geoserver-users] SLD styling in production environment Hi to all, Thanks you very much for all the input. Five replies and four different suggestions though. I guess people are divided into different camps with this one 😊 The problem that I find with the Geoserver’s own SLD editor is that for me it often validates SLD successfully, but when I implement it in a layer, it still doesn’t work (I’m offered a wms file, which implies broken styling afaik). Debugging is tedious since SLD files can be so long. I guess SLDeditor isn’t cabaple of importing SLD file from QGIS and then exporting it to a functioning SLD 1.0.0 file to be used in Geoserver? That would be really nice. In the very best scenario SLD export in QGIS would be fixed so that I could instruct our not-so-technical clients to produce their own styles with relative ease. I understand that this is still not happening in the near future. I guess I’ll have to start learning CSS. Best regards, Ville Koivisto +35840 701 4283 GIS Expert Suomen kuntotekniikka Oy Notice: This email and any attachments are confidential and may not be used, published or redistributed without the prior written consent of the Institute of Geological and Nuclear Sciences Limited (GNS Science). If received in error please destroy and immediately notify GNS Science. Do not copy or disclose the contents.
_______________________________________________ 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
