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).
Legend generategdwith agg