[mapserver-users] Anit-alias Lines?
Léveillé, James
James.Leveille at mtq.gouv.qc.ca
Mon Jun 2 13:32:52 PDT 2008
In your MapFile, add the following
OUTPUTFORMAT
NAME "AGG"
DRIVER AGG/PNG
IMAGEMODE RGB
END
In the getMap statement, add FORMAT=agg, as in
http://localhost/MapServer5/mapserv.exe?map=D:\mymapfile.map&VERSION=1.1.1&R
EQUEST=GetMap&LAYERS=allmylayers&STYLES=,,,,,,,,,,,,&SRS=EPSG:42105&BBOX=678
715.039028806,298202.419835631,721017.45078271,325126.670952306&WIDTH=850&HE
IGHT=541&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml&TRANSPARENT=
FALSE&FORMAT=agg
... And no need to specify the ANTIALIAS tag in your MapFile
______________________________________________________
JAMES LÉVEILLÉ
Service des systèmes de Mission
Direction des technologies de l'information
Ministère des Transports du Québec
5833, boul. Pierre-Bertrand, 2ième étage
Québec (Québec) G2K 1K7
Téléphone: (418) 380-2005 poste 227
Télécopieur: (418) 644-6653
james.leveille at mtq.gouv.qc.ca
-----Message d'origine-----
De : mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Jeshua Lacock
Envoyé : 2 juin 2008 16:23
À : mapserver-users at lists.osgeo.org
Objet : [mapserver-users] Anit-alias Lines?
Greetings,
(thanks James Léveillé - your advice worked perfectly!)
I was wondering how to produce anti-aliased lines. I tried using the
'ANTIALIAS true' statement with the style for the line, and I also
tried using the AGG renderer (mapserver was compiled with AGG), but my
lines still do not appear anti-aliased.
Here is an example of my output:
More information about the MapServer-users
mailing list