Bug report #16712

SLD export of categorized style fails if attribute name conflicts with a built-in function name

Added by Andrea Aime almost 7 years ago. Updated almost 7 years ago.

Status:Closed
Priority:Normal
Assignee:Andrea Aime
Category:Symbology
Affected QGIS version:2.18.9 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:24611

Description

A style build on an "Area" attribute will conflict with the built-in area function and the export won't contain a proper OGC filter for the categories, but comments such as:

          <!--Parser Error: syntax error, unexpected GT, expecting '(' - Expression was: Area > 500 AND Area <= 1000-->

A solution is to quote the attribute.

History

#1 Updated by Luigi Pirelli almost 7 years ago

  • Resolution set to fixed/implemented

#2 Updated by Nyall Dawson almost 7 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF