Bug report #6256

Updated by Andrea Aime over 6 years ago

Some SLD (and SE) tags are defined by extending the @ParameterValueType@ type.



Here's its definition (from SE spec.):

> <pre>

<xsd:complexType name="ParameterValueType" mixed="true">

<xsd:sequence minOccurs="0" maxOccurs="unbounded">

<xsd:element ref="ogc:expression"/>

</xsd:sequence>

</xsd:complexType>

</pre>

>

> The parameter values are allowed to be complex expressions for maximum flexibility.

> The ‘mixed="true"’ definition means that regular text may be mixed in with various sub-expressions, implying a text-substitution model for parameter values. Numeric and character-string data types are not distinguished, which may cause some complications.

> Here are some usage examples:

> <pre>

<SvgParameter name="stroke-width">3</SvgParameter>

</pre>

> <pre>

<SvgParameter name="stroke-width">

<ogc:Literal>3</ogc:Literal>

</SvgParameter>

</pre>

> <pre>

<SvgParameter name="stroke-width">

<ogc:Add>

<ogc:PropertyName>A</ogc:PropertyName>

<ogc:Literal>2</ogc:Literal>

</ogc:Add>

</SvgParameter>

</pre>



In this moment QGis supports only one of them depending on the tag:

* @SvgParameter@ and @CssParameter@ tags must contain a value

* @Rotation@ and @Opacity@ tags must contain a ogc:Literal element

Back