Timeline for WMS Request sld& parameter has no effect
Current License: CC BY-SA 4.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 29 at 13:30 | vote | accept | Șarif Omar | ||
Nov 16, 2023 at 16:40 | history | edited | nmtoken | CC BY-SA 4.0 |
syntax
|
Nov 16, 2023 at 16:39 | comment | added | nmtoken |
when passing a file through sld=..& the file must be findable by the server on the path given. did you try instead using an HTTP URL to the location rather than file: URL
|
|
Nov 16, 2023 at 16:35 | history | edited | nmtoken | CC BY-SA 4.0 |
syntax
|
Nov 16, 2023 at 16:23 | answer | added | Șarif Omar | timeline score: 1 | |
Nov 16, 2023 at 16:22 | comment | added | Șarif Omar | @IanTurton I looked a lot through that post, but it did not help unfortunately. But I have figure out what I need to do, thanks to the answers of user30184 | |
Nov 16, 2023 at 16:20 | comment | added | Șarif Omar | @user30184 I explained poorly, I am sorry. After trying to edit the sld file located in the data directory, everything works fine. I am testing on the same computer that runs GeoServer. By "style present on the server side" I was trying to say the style I defined using the Add New Style in the GeoServer web interface. Anyway, I understand the way it works now! Thank you | |
Nov 16, 2023 at 15:43 | comment | added | Ian Turton | does gis.stackexchange.com/a/227750/79 help? | |
Nov 16, 2023 at 15:40 | comment | added | user30184 | What do you actually mean by "the layer will be displayed with the style present on the server side even after I modify the local .sld file"? Are you not testing on the same computer that runs GeoServer? If you do not modify the physical file that GeoServer is using, you must either send the SLD inside SLD_BODY or place the SLD file into web where GeoServer can read it through http. | |
Nov 16, 2023 at 15:35 | comment | added | user30184 | I made a test with the default demo layers. Test URL localhost:8080/geoserver/topp/…. I edited the "default_polygon.sld" file in the data directory by changing the stroke-width or fill color with a text editor. The new style is changing the map immediately. | |
Nov 16, 2023 at 14:54 | comment | added | Șarif Omar |
@user30184 If i configure it on the server side, then the layer will be displayed with the style present on the server side even after I modify the local .sld file. At least this was the behavior when I tried. I will give it a shot with the SLD_BODY= , but this will not meet the requirements because I will not be able to dynamically modify the request from the client side)
|
|
Nov 16, 2023 at 14:40 | comment | added | user30184 |
For using &styles=testStyle the style must be configured on the server side. It will then be included also in the GetCapabilities. One thing that you have not tried yet is to use &SLD_BODY=... with GetMap.
|
|
Nov 16, 2023 at 14:22 | history | edited | Șarif Omar | CC BY-SA 4.0 |
deleted 3 characters in body
|
Nov 16, 2023 at 14:15 | history | asked | Șarif Omar | CC BY-SA 4.0 |