Opened 14 months ago
Closed 12 months ago
#2787 closed enhancement (fixed)
FIX - validate colorTable in JSON string when creating a new WMS style
Reported by: | Bang Pham Huu | Owned by: | Bang Pham Huu |
---|---|---|---|
Priority: | minor | Milestone: | 10.2 |
Component: | petascope | Version: | 10.2 |
Keywords: | Cc: | Dimitar Misev | |
Complexity: | Medium |
Description
to avoid the error like below with comments in JSON string:
"colorMap": { "type": "values", "colorTable": { "0": [254, 254, 255, 255], // Dry "1": [43, 41, 171, 255], // Permanent water "2": [75, 42, 254, 255], // Temporary water "3": [1, 190, 255, 255], // Permanent wet "4": [47, 255, 223, 255], // Temporary wet "253": [254, 242, 192, 255], // Sea water "254": [153, 153, 153, 255], // Unclassifiable "255": [254, 254, 255, 255] // Outside area } }
Note:
See TracTickets
for help on using tickets.