Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#2714 closed defect (fixed)

the key image isn't scaled, as it is with GD (WMS-GetLegendGraphic and raster-pixmap)

Reported by: hschoenhammer Owned by: tbonfort
Priority: high Milestone: 5.2.1 release
Component: AGG Version: 5.0
Severity: normal Keywords: AGG, GetLegendGraphic
Cc:

Description

Using GD as driver for creating the output, i get the correct legend-image: The definition looks like:

OUTPUTFORMAT

NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
EXTENSION PNG
IMAGEMODE RGBA
TRANSPARENT ON

END

Only changing the output-driver, I get the a legend-picture which is only a part of the original pixmap:

The definition looks like:

OUTPUTFORMAT

MIMETYPE "image/png"
NAME 'AGG_Q'
DRIVER AGG/PNG
EXTENSION PNG
IMAGEMODE RGBA
TRANSPARENT ON

END

The problem using AGG is this:

If using a pixmap with "KEYIMAGE …."

CLASS

NAME "Topografische Karte 1:50.000"
KEYIMAGE "/data/raster/topo_karten/tk50_legende.png"

END

only a part of the raster-image is used for generating the legend (the right side of th picture, the middle of the picture).

Attachments (2)

agg-legend.bmp (48.1 KB ) - added by hschoenhammer 16 years ago.
Legend generated with AGG
gd-legend.bmp (48.1 KB ) - added by hschoenhammer 16 years ago.
Legend generated with GD

Download all attachments as: .zip

Change History (4)

by hschoenhammer, 16 years ago

Attachment: agg-legend.bmp added

Legend generated with AGG

by hschoenhammer, 16 years ago

Attachment: gd-legend.bmp added

Legend generated with GD

comment:1 by tbonfort, 16 years ago

Milestone: 5.2.1 release5.4 release
Resolution: fixed
Status: newclosed

fixed in r7945

comment:2 by tbonfort, 16 years ago

Milestone: 5.4 release5.2.1 release

fixed in r7947 for 5.2 branch

Note: See TracTickets for help on using tickets.