Opened 4 years ago

Closed 4 years ago

#2379 closed defect (fixed)

GETMAPLEGENDIMAGE does not handle ShowInLegend style setting and multi-style scale ranges properly

Reported by: jng Owned by: jng
Priority: low Milestone:
Component: Mapping Service Version: 2.5.0
Severity: trivial Keywords:
Cc: External ID:

Description (last modified by jng)

If you have a layer that has all style types and some of them have ShowInLegend? = false, that setting is disregarded by the GETMAPLEGENDIMAGE operation.

In addition, a layer with multiple geom styles will not render properly because the code currently always gets the first geom style regardless.

Attachments (5)

2379.patch (6.2 KB) - added by jng 4 years ago.
Patch to fix issue
2379_v2.patch (6.2 KB) - added by jng 4 years ago.
2379_v3.patch (6.7 KB) - added by jng 4 years ago.
2379_v4.patch (6.8 KB) - added by jng 4 years ago.
2379_v5.patch (97.0 KB) - added by jng 4 years ago.
Latest patch with unit tests

Download all attachments as: .zip

Change History (7)

comment:1 Changed 4 years ago by jng

Description: modified (diff)
Summary: GETMAPLEGENDIMAGE disregards ShowInLegend style settingGETMAPLEGENDIMAGE does not handle ShowInLegend style setting and multi-style scale ranges properly

Changed 4 years ago by jng

Attachment: 2379.patch added

Patch to fix issue

Changed 4 years ago by jng

Attachment: 2379_v2.patch added

Changed 4 years ago by jng

Attachment: 2379_v3.patch added

Changed 4 years ago by jng

Attachment: 2379_v4.patch added

Changed 4 years ago by jng

Attachment: 2379_v5.patch added

Latest patch with unit tests

comment:2 Changed 4 years ago by jng

Resolution: fixed
Status: newclosed

Fixed trunk (r7913) and 2.5 (r7912)

Note: See TracTickets for help on using tickets.