Opened 16 years ago

Closed 16 years ago

#2715 closed defect (duplicate)

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

Reported by: hschoenhammer Owned by: tbonfort
Priority: normal 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 generategdwith agg
gd-legend.bmp (48.1 KB ) - added by hschoenhammer 16 years ago.
Legend generated with gd

Download all attachments as: .zip

Change History (3)

by hschoenhammer, 16 years ago

Attachment: agg-legend.bmp added

Legend generategdwith agg

by hschoenhammer, 16 years ago

Attachment: gd-legend.bmp added

Legend generated with gd

comment:1 by tbonfort, 16 years ago

Resolution: duplicate
Status: newclosed

duplicate of #2714

Note: See TracTickets for help on using tickets.