Bug report #6256

SLD: import both plain values and ogc:Literal tags within se:SvgParameter tag (and others)

Added by Giuseppe Sucameli almost 8 years ago. Updated over 1 year ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Symbology
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:15562

Description

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

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

<xsd:complexType name="ParameterValueType" mixed="true">
  <xsd:sequence minOccurs="0" maxOccurs="unbounded">
    <xsd:element ref="ogc:expression"/>
  </xsd:sequence>
</xsd:complexType>

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:

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

<SvgParameter name="stroke-width">
  <ogc:Literal>3</ogc:Literal>
</SvgParameter>

<SvgParameter name="stroke-width">
  <ogc:Add>
    <ogc:PropertyName>A</ogc:PropertyName>
    <ogc:Literal>2</ogc:Literal>
  </ogc:Add>
</SvgParameter>

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

History

#1 Updated by Paolo Cavallini almost 8 years ago

  • Target version set to Version 2.0.0

#2 Updated by Jürgen Fischer about 6 years ago

  • Target version changed from Version 2.0.0 to Future Release - Lower Priority

#3 Updated by Giovanni Manghi over 3 years ago

  • Easy fix? set to No
  • Regression? set to No

#4 Updated by Andrea Aime almost 3 years ago

  • Description updated (diff)
  • Subject changed from SLD: support both plain values and ogc:Literal tags within se:SvgParameter tag (and others) to SLD: import both plain values and ogc:Literal tags within se:SvgParameter tag (and others)

#5 Updated by Giovanni Manghi over 1 year ago

  • Resolution set to end of life
  • Status changed from Open to Closed

Also available in: Atom PDF