Ticket #2714 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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"[[BR]] 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

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

Change History

Changed 5 years ago by hschoenhammer

Legend generated with AGG

Changed 5 years ago by hschoenhammer

Legend generated with GD

Changed 5 years ago by tbonfort

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from 5.2.1 release to 5.4 release

fixed in r7945

Changed 5 years ago by tbonfort

  • milestone changed from 5.4 release to 5.2.1 release

fixed in r7947 for 5.2 branch

Note: See TracTickets for help on using tickets.