AGG and legends

Bob Basques Bob.Basques at CI.STPAUL.MN.US
Wed Feb 6 14:38:53 EST 2008


I don't think that BITMAP fonts are supported for AGG,

Here is the Legend def from the Googlish Mapfile I put together a couple of weeks ago.

LEGEND
  STATUS ON
  KEYSPACING 5 10
  KEYSIZE 20 12
  IMAGECOLOR 255 255 255
  LABEL
    TYPE TRUETYPE
                  FONT bluehigh
                  COLOR 0 0 0
                  OUTLINECOLOR 254 254 254
                  SIZE 12
  END
 END

The above combined with a separate section in the mapfile dedicated to the Legends generates this graphic:

http://gis.ci.stpaul.mn.us/datasets/SHP/METC/TLG/CENTERLINES_TLG/tlg_shields_googlish_agg_public.map-4.99-pwcs-01?mapext=335538.0886426592%20-11724.376731301949%20719547.783933518%20343275.62326869805&mapsize=781%20722&mode=legend

Which is a 24 bit png with transparent background (no IE 6 happy)

bobb




Bob Basques
GIS Systems Developer
City of Saint Paul, MN

GISmo 
Powered by
GeoMOOSE




>>> "Hunter, David - St. Louis Park, MN" <David.Hunter at FNIS.COM> wrote:

Here's my legend section:

LEGEND
    STATUS ON
    KEYSIZE 22 22
    LABEL
      TYPE BITMAP
      SIZE SMALL
      COLOR 0 0 89
    END
    TEMPLATE "nyptmaps_legend.htm"
END

It looks like GD is drawing the legend symbols, because the lines are
very coarse, and the hatching problem that I talked about in another
email is not present.


-----Original Message-----
From: thomas bonfort [mailto:thomas.bonfort at gmail.com]=20
Sent: Wednesday, February 06, 2008 1:09 PM
To: Hunter, David - St. Louis Park, MN
Cc: MAPSERVER-USERS at lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] AGG and legends

legends are drawn with agg to. please post the relevant sections of
your mapfile to see what could be going wrong.
regards,
thomas

On Feb 6, 2008 6:51 PM, Hunter, David - St. Louis Park, MN
<David.Hunter at fnis.com> wrote:
>
>
>
>
> While experimenting with AGG, it appears that the legend is still
drawn
> using GD, no matter what the OUTPUTFORMAT settings are.  Is this
> intentional?
>
>
>
>
>
> David S. Hunter
>  Lead Software Engineer
>  Fidelity National Geographic Solutions
>  division of Fidelity National Information Services
>  5353 Gamble Drive, Suite 201
>  St. Louis Park, MN 55416
>  Email: david.hunter at fnis.com
>  Phone: 952.542.1440 ext. 256
>  Fax: 952.542.3859
>
>
>
>
>
>
-------------- next part --------------
Skipped content of type multipart/related


More information about the mapserver-users mailing list