Bug report #16202

Color Maps with labels that contain commas

Added by Darren Kavanagh 8 days ago.

Status:Open Start Date:02/16/2017
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:Rasters
Target version:-
Platform: Pull Request or Patch supplied:No
Platform version: Affected version:2.18.2
Status info: Causes crash or corruption:No
Resolution: Tag:raster

Description

Scope - Single Band Pseudocolor Renderer (qgssinglebandpseudocolorrendererwidget.cpp)

Exported color maps labels that contain commas are exported without enclosing the label within double quotes. Example output:

1,255,255,255,255,Label, with comma

Importing color maps that contain labels with commas results in an error:

The following lines contain errors ... .

Manually adding double quotes to label and importing gives the same error.

To correct this problem a different column separator could be used or new logic written to output and parse text fields like a CSV file.

Also available in: Atom