Bug report #17725

Importing SLD : attributes names are not quoted in the expression

Added by Olivier Dalang over 6 years ago. Updated about 5 years ago.

Affected QGIS version:master Regression?:No
Operating System: Easy fix?:Yes
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:25621



When importing an SLD with some basic rules, attributes name are not quoted in the expression. This means that they can easily clash with keywords/function, and thus the expression will be invalid.

Example :


will generate the following rule:

boundary = 'administrative'

And since boundary is the name of a function, this makes an error (expecting "(")

Thanks !


#1 Updated by Giovanni Manghi about 5 years ago

  • Status changed from Open to Feedback

Please check if this issue is still valid on QGIS 3.4.5 or 3.6.

Also available in: Atom PDF