<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=859255420-04082008>perhaps it's the default map_imagetype in OL for the 
MapServer request.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=859255420-04082008></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>&nbsp;&nbsp;&nbsp; 
DEFAULT_PARAMS: {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mode: 
"map",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map_imagetype: 
"png"<BR>&nbsp;&nbsp;&nbsp; },<BR></FONT></DIV>
<DIV><SPAN class=859255420-04082008></SPAN><FONT face=Arial><FONT 
color=#0000ff><FONT size=2>Arnd</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=859255420-04082008></SPAN></FONT></FONT></FONT><BR>&nbsp;</DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> users-bounces@openlayers.org 
[mailto:users-bounces@openlayers.org] <B>Im Auftrag von </B>Bill 
Thoen<BR><B>Gesendet:</B> Montag, 4. August 2008 22:02<BR><B>An:</B> 
users@openlayers.org<BR><B>Betreff:</B> [OpenLayers-Users] OpenLayers, MapServer 
Map files and AGG<BR></FONT><BR></DIV>
<DIV></DIV><FONT size=+1><FONT face=sans-serif>I'm just getting started with 
OpenLayers so I have a lot of questions, but I'll try to pace 
myself.<BR><BR>Anyway I've been using MapServer and I've compiled it with AGG 
support so I can get nice anti-aliased maps, but when I feed a .map file to 
OpenLayers that includes the AGG driver in the OUTPUTFORMAT section, I don't 
seem to get anti-aliasing.<BR><BR>I'm referencing the map file like 
so:<BR>&nbsp; var layer = new OpenLayers.Layer.MapServer( "World", 
<BR>&nbsp;&nbsp;&nbsp; <A class=moz-txt-link-rfc2396E 
href="http://sandbox/cgi-bin/mapserv">"http://sandbox/cgi-bin/mapserv"</A>, 
{layers: 'states world', <BR>&nbsp;&nbsp;&nbsp; map: 
'/var/www/html/blt/usa/usa.map'}, {singleTile: true} );<BR><BR>Everything seems 
to work, except that I get the old jaggy lines that the GD driver used to 
produce. (Also, I'm using Linux FC9, MapServer 5.0.3 and OpenLayers 
2.5).<BR><BR>Am I doing something wrong, or is AGG not supported in 
OL?<BR></FONT></FONT><FONT size=+1><FONT face=sans-serif><BR>My .map file looks 
like:<BR></FONT></FONT><BR><PRE>MAP
  SIZE  600  500
  EXTENT  -2210000  -2640000  2590000  1360000
  IMAGECOLOR  180  180  250
  TEMPLATEPATTERN  "printable\.html|loader\.html"
  UNITS  METERS

  SHAPEPATH  /var/www/maps/data/
  PROJECTION
    "init=epsg:2163"    #  Lambert  Azimuthal  (Equal  Area)
  END

  SCALEBAR
    STATUS  EMBED
    UNITS  MILES
    INTERVALS  3
    TRANSPARENT  TRUE
    OUTLINECOLOR  0  0  0  
  END

  LEGEND
    STATUS  ON
  END

  WEB
    TEMPLATE  "/var/www/html/blt/usa/usa.html"
    IMAGEPATH  "/var/www/html/tmp/"
    IMAGEURL  "/tmp/"
  END

  OUTPUTFORMAT
    NAME  'AGG'
    DRIVER  "AGG/PNG"
    MIMETYPE  "image/png"
    IMAGEMODE  RGB
    EXTENSION  "png"
  END

  LAYER
    NAME  world
    TYPE  POLYGON
    STATUS  ON
    DATA  countries_simpl
    CLASSITEM  'name'
    CLASS
      NAME  'USA'
      EXPRESSION  'United  States'
      OUTLINECOLOR  100  100  100
      COLOR  255  255  240
    END
    CLASS
      NAME  'Countries'
      EXPRESSION  ("[name]"  ne  "United  States")
      OUTLINECOLOR  100  100  100
      COLOR  200  200  200
    END
    PROJECTION
      "+proj=latlong  +datum=WGS84"
    END
  END

  LAYER
    NAME  states
    TYPE  POLYGON
    STATUS  ON
    INCLUDE  '/var/www/maps/data/states.map'
    CLASS
      NAME  "US  States"
      OUTLINECOLOR  0  0  0
      COLOR  255  255  196
    END
    MINSCALE  10000000
  END

  LAYER
    NAME  counties
    TYPE  LINE
    STATUS  ON
    INCLUDE  '/var/www/maps/data/counties.map'
    CLASS
      STYLE
        OUTLINECOLOR  192  0  128
        WIDTH  1
      END
    END
    MAXSCALE  2500000
  END

  LAYER
    NAME  counties
    TYPE  POLYGON
    STATUS  OFF
    INCLUDE  '/var/www/maps/data/counties.map'
    INCLUDE  '/var/www/maps/styles/counties.map'
    LABELMAXSCALE  2500000
  END

  LAYER
    NAME  states
    TYPE  LINE
    STATUS  ON
    INCLUDE  '/var/www/maps/data/states.map'
    CLASS
      NAME  "US  States"
      STYLE
        OUTLINECOLOR  0  0  128
        WIDTH  1
      END
    END
    MAXSCALE  10000000
  END
END
</PRE><BR></BODY></HTML>