Sld Service

This page describes the proposed sldservice restlet module for editing of sld style.
It is very much a work in progress. The main motivation for this module is the need for users to be able to easily edit and create new sld style based on classifications over existing data (thematic mapping). The service has to serve an sld userStyle in a restfull way, dividing it in multiple resources. This should permit to build a javascript client ables to manage styles with a great number of rules.
The service is also able to create classified set of rules using classification methods like quantile, unique value or equal interval.

URL GET DELETE PUT POST
/rest/sldservice/{typeName}/styles list of layer names and urls (json)


/rest/sldservice/{typeName}/styles/{styleName} style informations and list of feature type styles (json)

Redefines the style based on the provided informations (params provided as a form). This is the new location of ominiverdi's classify endpoint.
/rest/sldservice/\typeName}/styles/{styleName}/{ftsId} feature type style generic infos and number of rules (json)


/rest/sldservice/{typename}/{styleName}/{ftsId}/rules definition of all the rules (json)

replace all the rules with the ones posted (xml)
/rest/sldservice/{typename}/{styleName}/{ftsId}/rules/{ruleId} definition of the rules from the startRuleId to the last one (json)

keep the existing rules up to startRuleId, remove the remaining ones, and add the posted ones at the end (xml)
/rest/sldservice/{typename}/attributes list of attributes as couples of name and type (json)


The /rest/sldservice/{typename}/styles/{stylename} post request uses the following parameters:

  • classMethod: "unique", "quantile", "equalInterval"
  • property: the property name used for classfication
  • classNum: the number of classes (minimum 4... don't ask why)
  • colorRamp: may be "random", "red", "blue", "custom"
  • startColor: custom ramp start color (0xRRGGBB)
  • endColor: custom ramp end color (0xRRGGBB)
  • midColor (optional): custom ramp mid color (0xRRGGBB)
View Attachments (0) Info