Provides functionality to assign a style to a coverage layer in GeoServer.
Verifies that the specified style exists before attempting to assign it as
the default style for a given layer. All functions require a
GeoserverConfig.Connection as their first argument.
Summary
Functions
Assigns a style to a layer as its default style, verifying the style exists first.
Functions
Assigns a style to a layer as its default style, verifying the style exists first.
Parameters
conn— aGeoserverConfig.Connectionworkspace— workspace in which the layer resideslayer_name— name of the layerstyle_name— name of the style to assignstyle_workspace— workspace of the style, ornilto check globally (default:nil)
Returns
{:ok, message}if the style was successfully assigned{:error, reason}if the style does not exist or the assignment failed